|
SObjectizer 5.8
|
A type for storing prefix of data_source name. More...
#include <prefix.hpp>
Public Member Functions | |
| constexpr | prefix_t () noexcept |
| Default constructor creates empty prefix. | |
| constexpr | prefix_t (const char *value) noexcept |
| Initializing constructor. | |
| prefix_t (const std::string &value) noexcept(noexcept(value.c_str())) | |
| Initializing constructor. | |
| constexpr const char * | c_str () const noexcept |
| Access to prefix value. | |
| constexpr std::string_view | as_string_view () const noexcept(noexcept(std::string_view{std::declval< const char * >()})) |
| Access to prefix value as string_view. | |
| constexpr bool | empty () const noexcept |
| Is prefix empty? | |
| bool | operator== (const prefix_t &o) const noexcept |
| Is equal? | |
| bool | operator!= (const prefix_t &o) const noexcept |
| Is not equal? | |
| bool | operator< (const prefix_t &o) const noexcept |
| Is less than? | |
Static Public Attributes | |
| static constexpr const std::size_t | max_length = 47 |
| Max length of prefix (not including 0-symbol at the end). | |
| static constexpr const std::size_t | max_buffer_size = max_length + 1 |
| Max size of buffer for prefix value (including 0-symbol at the end). | |
Private Attributes | |
| char | m_value [max_buffer_size] |
| Actual value. | |
A type for storing prefix of data_source name.
Definition at line 31 of file prefix.hpp.
|
inlineconstexprnoexcept |
Default constructor creates empty prefix.
Definition at line 40 of file prefix.hpp.
|
inlineconstexprnoexcept |
Initializing constructor.
Gets no more than max_length symbols.
Definition at line 54 of file prefix.hpp.
|
inlinenoexcept |
Initializing constructor.
Gets no more than max_length symbols.
Definition at line 73 of file prefix.hpp.
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
Access to prefix value.
Definition at line 80 of file prefix.hpp.
|
inlinenodiscardconstexprnoexcept |
Is prefix empty?
Definition at line 99 of file prefix.hpp.
|
inlinenodiscardnoexcept |
Is not equal?
Definition at line 115 of file prefix.hpp.
|
inlinenodiscardnoexcept |
Is less than?
Definition at line 122 of file prefix.hpp.
|
inlinenodiscardnoexcept |
Is equal?
Definition at line 107 of file prefix.hpp.
|
private |
Actual value.
Definition at line 130 of file prefix.hpp.
|
staticconstexpr |
Max size of buffer for prefix value (including 0-symbol at the end).
Definition at line 37 of file prefix.hpp.
|
staticconstexpr |
Max length of prefix (not including 0-symbol at the end).
Definition at line 35 of file prefix.hpp.