cpp-stat-bench 0.24.0
Benchmark library with statistics for C++.
|
Namespace of utility functions and classes. More...
Classes | |
class | ISyncBarrier |
Interface of barriers to synchronize threads. More... | |
class | OrderedMap |
Class of mapping which preserves order of insertion. More... | |
class | PthreadSyncBarrier |
Class of barriers to synchronize threads using pthread library. More... | |
class | StringView |
Class of view of strings. More... | |
class | Utf8String |
Class of UTF-8 encoded string. More... | |
class | WindowsSyncBarrier |
Class of barriers to synchronize threads using synchronization barriers in Windows. More... | |
Functions | |
auto | check_glob_pattern (StringView pattern, StringView str) -> bool |
Check whether a string matches with a glob pattern. | |
auto | create_mutex_sync_barrier (std::size_t num_waiting_threads) -> std::shared_ptr< ISyncBarrier > |
Create a barrier to synchronize threads using a mutex. | |
auto | create_sync_barrier (std::size_t num_waiting_threads) -> std::shared_ptr< ISyncBarrier > |
Create a barrier to synchronize threads. | |
auto | escape_for_file_name (const Utf8String &input) -> Utf8String |
Escape a string for a file name. | |
auto | escape_for_html (const StringView &input) -> std::string |
Escape a string for HTML. | |
auto | operator!= (const Utf8String &lhs, const Utf8String &rhs) noexcept -> bool |
Compare two Utf8String objects. | |
auto | operator< (const Utf8String &lhs, const Utf8String &rhs) noexcept -> bool |
Compare two Utf8String objects. | |
auto | operator<< (std::ostream &stream, const Utf8String &val) -> std::ostream & |
Format to a stream. | |
auto | operator<= (const Utf8String &lhs, const Utf8String &rhs) noexcept -> bool |
Compare two Utf8String objects. | |
auto | operator== (const Utf8String &lhs, const Utf8String &rhs) noexcept -> bool |
Compare two Utf8String objects. | |
auto | operator> (const Utf8String &lhs, const Utf8String &rhs) noexcept -> bool |
Compare two Utf8String objects. | |
auto | operator>= (const Utf8String &lhs, const Utf8String &rhs) noexcept -> bool |
Compare two Utf8String objects. | |
void | prepare_directory (const std::string &path) |
Prepare a directory. | |
void | prepare_directory_for (const std::string &path) |
Prepare a directory for a file. | |
Namespace of utility functions and classes.
|
nodiscard |
Check whether a string matches with a glob pattern.
[in] | pattern | Glob pattern. |
[in] | str | String. |
true | The input string matches with the glob pattern. |
false | The input string doesn't match with the glob pattern. |
Definition at line 44 of file check_glob_pattern.cpp.
|
nodiscard |
Create a barrier to synchronize threads using a mutex.
[in] | num_waiting_threads | Number of threads to wait. |
Definition at line 103 of file sync_barrier.cpp.
|
nodiscard |
Create a barrier to synchronize threads.
[in] | num_waiting_threads | Number of threads to wait. |
Definition at line 108 of file sync_barrier.cpp.
|
nodiscard |
Escape a string for a file name.
[in] | input | Input string. |
Definition at line 81 of file escape_for_file_name.cpp.
|
nodiscard |
Escape a string for HTML.
[in] | input | Input string. |
Definition at line 29 of file escape_for_html.cpp.
|
nodiscardnoexcept |
Compare two Utf8String objects.
[in] | lhs | Left-hand side object. |
[in] | rhs | Right-hand side object. |
true | The two objects are not equal. |
false | The two objects are equal. |
Definition at line 45 of file utf8_string.cpp.
|
nodiscardnoexcept |
Compare two Utf8String objects.
[in] | lhs | Left-hand side object. |
[in] | rhs | Right-hand side object. |
true | The left-hand side object is less than the right-hand side object. |
false | The left-hand side object is not less than the right-hand side object. |
Definition at line 49 of file utf8_string.cpp.
auto stat_bench::util::operator<< | ( | std::ostream & | stream, |
const Utf8String & | val ) -> std::ostream& |
Format to a stream.
[in,out] | stream | Stream. |
[in] | val | Value. |
Definition at line 81 of file utf8_string.cpp.
|
nodiscardnoexcept |
Compare two Utf8String objects.
[in] | lhs | Left-hand side object. |
[in] | rhs | Right-hand side object. |
true | The left-hand side object is less than or equal to the right-hand side object. |
false | The left-hand side object is greater than the right-hand side object. |
Definition at line 57 of file utf8_string.cpp.
|
nodiscardnoexcept |
Compare two Utf8String objects.
[in] | lhs | Left-hand side object. |
[in] | rhs | Right-hand side object. |
true | The two objects are equal. |
false | The two objects are not equal. |
Definition at line 41 of file utf8_string.cpp.
|
nodiscardnoexcept |
Compare two Utf8String objects.
[in] | lhs | Left-hand side object. |
[in] | rhs | Right-hand side object. |
true | The left-hand side object is less than or equal to the right-hand side object. |
false | The left-hand side object is greater than the right-hand side object. |
Definition at line 53 of file utf8_string.cpp.
|
nodiscardnoexcept |
Compare two Utf8String objects.
[in] | lhs | Left-hand side object. |
[in] | rhs | Right-hand side object. |
true | The left-hand side object is greater than or equal to the right-hand side object. |
false | The left-hand side object is less than the right-hand side object. |
Definition at line 61 of file utf8_string.cpp.
void stat_bench::util::prepare_directory | ( | const std::string & | path | ) |
Prepare a directory.
[in] | path | Directory path. |
Definition at line 89 of file prepare_directory.cpp.
void stat_bench::util::prepare_directory_for | ( | const std::string & | path | ) |
Prepare a directory for a file.
[in] | path | Directory path. |
Definition at line 115 of file prepare_directory.cpp.