SObjectizer  5.5
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
so_5::stats::prefix_t Class Reference

A type for storing prefix of data_source name. More...

#include <prefix.hpp>

Public Member Functions

 prefix_t ()
 Default constructor creates empty prefix. More...
 
 prefix_t (const char *value)
 Initializing constructor. More...
 
 prefix_t (const std::string &value)
 Initializing constructor. More...
 
const char * c_str () const
 Access to prefix value. More...
 
bool empty () const
 Is prefix empty? More...
 
bool operator== (const prefix_t &o) const
 Is equal? More...
 
bool operator!= (const prefix_t &o) const
 Is not equal? More...
 
bool operator< (const prefix_t &o) const
 Is less than? More...
 

Static Public Attributes

static constexpr const std::size_t max_length = 47
 Max length of prefix (not including 0-symbol at the end). More...
 
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). More...
 

Private Attributes

char m_value [max_buffer_size]
 Actual value. More...
 

Detailed Description

A type for storing prefix of data_source name.

Since
v.5.5.4

Constructor & Destructor Documentation

◆ prefix_t() [1/3]

so_5::stats::prefix_t::prefix_t ( )
inline

Default constructor creates empty prefix.

◆ prefix_t() [2/3]

so_5::stats::prefix_t::prefix_t ( const char *  value)
inline

Initializing constructor.

Gets no more than max_length symbols.

◆ prefix_t() [3/3]

so_5::stats::prefix_t::prefix_t ( const std::string &  value)
inline

Initializing constructor.

Gets no more than max_length symbols.

Member Function Documentation

◆ c_str()

const char* so_5::stats::prefix_t::c_str ( ) const
inline

Access to prefix value.

◆ empty()

bool so_5::stats::prefix_t::empty ( ) const
inline

Is prefix empty?

◆ operator!=()

bool so_5::stats::prefix_t::operator!= ( const prefix_t o) const
inline

Is not equal?

◆ operator<()

bool so_5::stats::prefix_t::operator< ( const prefix_t o) const
inline

Is less than?

◆ operator==()

bool so_5::stats::prefix_t::operator== ( const prefix_t o) const
inline

Is equal?

Member Data Documentation

◆ m_value

char so_5::stats::prefix_t::m_value[max_buffer_size]
private

Actual value.

◆ max_buffer_size

constexpr const std::size_t so_5::stats::prefix_t::max_buffer_size = max_length + 1
static

Max size of buffer for prefix value (including 0-symbol at the end).

◆ max_length

constexpr const std::size_t so_5::stats::prefix_t::max_length = 47
static

Max length of prefix (not including 0-symbol at the end).


The documentation for this class was generated from the following file: