SObjectizer  5.8
Loading...
Searching...
No Matches
so_5::stats::suffix_t Class Reference

A type for representing the suffix of data_source name. More...

#include <prefix.hpp>

Public Member Functions

constexpr suffix_t (const char *value) noexcept
 Initializing constructor.
 
constexpr const char * c_str () const noexcept
 Access to suffix 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 operator== (const suffix_t &o) const noexcept
 Compares suffixes by pointer values.
 
constexpr bool operator!= (const suffix_t &o) const noexcept
 Compares suffixes by pointer value.
 
constexpr bool operator< (const suffix_t &o) const noexcept
 Compares suffixes by pointer value.
 

Private Attributes

const char * m_value
 Actual value.
 

Detailed Description

A type for representing the suffix of data_source name.

Note
This is just a wrapper around const char *.
Attention
It's assumed that suffix_t holds a pointer to a string in static memory (it's a pointer to a string literal).
Since
v.5.5.4

Definition at line 155 of file prefix.hpp.

Constructor & Destructor Documentation

◆ suffix_t()

so_5::stats::suffix_t::suffix_t ( const char * value)
inlineconstexprnoexcept

Initializing constructor.

Parameters
valueValue. It's expected to be a pointer to a null-terminated string.

Definition at line 159 of file prefix.hpp.

Member Function Documentation

◆ as_string_view()

std::string_view so_5::stats::suffix_t::as_string_view ( ) const
inlinenodiscardconstexprnoexcept

Access to prefix value as string_view.

Since
v.5.8.2

Definition at line 179 of file prefix.hpp.

◆ c_str()

const char * so_5::stats::suffix_t::c_str ( ) const
inlinenodiscardconstexprnoexcept

Access to suffix value.

Definition at line 168 of file prefix.hpp.

◆ operator!=()

bool so_5::stats::suffix_t::operator!= ( const suffix_t & o) const
inlinenodiscardconstexprnoexcept

Compares suffixes by pointer value.

Definition at line 195 of file prefix.hpp.

◆ operator<()

bool so_5::stats::suffix_t::operator< ( const suffix_t & o) const
inlinenodiscardconstexprnoexcept

Compares suffixes by pointer value.

Definition at line 202 of file prefix.hpp.

◆ operator==()

bool so_5::stats::suffix_t::operator== ( const suffix_t & o) const
inlinenodiscardconstexprnoexcept

Compares suffixes by pointer values.

Definition at line 187 of file prefix.hpp.

Member Data Documentation

◆ m_value

const char* so_5::stats::suffix_t::m_value
private

Actual value.

Definition at line 210 of file prefix.hpp.


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