OnixS C++ B3 Binary UMDF Market Data Handler  1.3.3
API documentation
StrRef Class Reference

#include <OnixS/B3/MarketData/UMDF/messaging/StrRef.h>

Public Types

typedef size_t size_type
 
typedef const Charconst_iterator
 
typedef const_iterator iterator
 
typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 
typedef const_reverse_iterator reverse_iterator
 

Public Member Functions

 StrRef ()
 
 StrRef (const Char *chars, size_t size) throw ()
 
 StrRef (const Char *chars) throw ()
 
 StrRef (const std::string &string)
 
ONIXS_B3_UMDF_MD_NODISCARD bool empty () const throw ()
 
ONIXS_B3_UMDF_MD_NODISCARD const Chardata () const throw ()
 
ONIXS_B3_UMDF_MD_NODISCARD size_type size () const throw ()
 
ONIXS_B3_UMDF_MD_NODISCARD size_type length () const throw ()
 
ONIXS_B3_UMDF_MD_NODISCARD const_iterator begin () const throw ()
 
ONIXS_B3_UMDF_MD_NODISCARD const_iterator end () const throw ()
 
ONIXS_B3_UMDF_MD_NODISCARD const_iterator cbegin () const throw ()
 
ONIXS_B3_UMDF_MD_NODISCARD const_iterator cend () const throw ()
 
ONIXS_B3_UMDF_MD_NODISCARD const_reverse_iterator rbegin () const throw ()
 
ONIXS_B3_UMDF_MD_NODISCARD const_reverse_iterator rend () const throw ()
 
ONIXS_B3_UMDF_MD_NODISCARD const_reverse_iterator crbegin () const throw ()
 
ONIXS_B3_UMDF_MD_NODISCARD const_reverse_iterator crend () const throw ()
 
ONIXS_B3_UMDF_MD_NODISCARD const Charoperator[] (size_type index) const throw ()
 
ONIXS_B3_UMDF_MD_NODISCARD const Charat (size_type index) const
 
const Charfront () const throw ()
 
const Charback () const throw ()
 
void swap (StrRef &other) throw ()
 
 operator std::basic_string< Char > () const
 

Detailed Description

Provides the efficient way of accessing text-based values without copying content of the text being referred.

Definition at line 62 of file StrRef.h.

Member Typedef Documentation

typedef const Char* const_iterator

STL-like iterators.

Definition at line 68 of file StrRef.h.

typedef std::reverse_iterator<const_iterator> const_reverse_iterator

Definition at line 70 of file StrRef.h.

Definition at line 69 of file StrRef.h.

Definition at line 71 of file StrRef.h.

typedef size_t size_type

Definition at line 65 of file StrRef.h.

Constructor & Destructor Documentation

StrRef ( )
inline

Initializes the instance referring to nothing.

Definition at line 75 of file StrRef.h.

StrRef ( const Char chars,
size_t  size 
)
throw (
)
inline

Explicit initialization.

Definition at line 83 of file StrRef.h.

StrRef ( const Char chars)
throw (
)
inline

Explicit initialization.

Definition at line 90 of file StrRef.h.

StrRef ( const std::string &  string)
inline

Explicit initialization.

Definition at line 104 of file StrRef.h.

Member Function Documentation

ONIXS_B3_UMDF_MD_NODISCARD const Char& at ( size_type  index) const
inline

Provides the bound-checked per-item access.

Definition at line 212 of file StrRef.h.

const Char& back ( ) const
throw (
)
inline
Returns
the reference to the last character in the view.

Definition at line 230 of file StrRef.h.

ONIXS_B3_UMDF_MD_NODISCARD const_iterator begin ( ) const
throw (
)
inline

STL-like begin().

Definition at line 144 of file StrRef.h.

ONIXS_B3_UMDF_MD_NODISCARD const_iterator cbegin ( ) const
throw (
)
inline

STL-like cbegin().

Definition at line 160 of file StrRef.h.

ONIXS_B3_UMDF_MD_NODISCARD const_iterator cend ( ) const
throw (
)
inline

STL-like cend().

Definition at line 167 of file StrRef.h.

ONIXS_B3_UMDF_MD_NODISCARD const_reverse_iterator crbegin ( ) const
throw (
)
inline

STL-like crbegin().

Definition at line 188 of file StrRef.h.

ONIXS_B3_UMDF_MD_NODISCARD const_reverse_iterator crend ( ) const
throw (
)
inline

STL-like crend().

Definition at line 195 of file StrRef.h.

ONIXS_B3_UMDF_MD_NODISCARD const Char* data ( ) const
throw (
)
inline
Returns
the read-only content.

Definition at line 121 of file StrRef.h.

ONIXS_B3_UMDF_MD_NODISCARD bool empty ( ) const
throw (
)
inline
Returns
true if the reference is empty, otherwise - false.

Definition at line 113 of file StrRef.h.

ONIXS_B3_UMDF_MD_NODISCARD const_iterator end ( ) const
throw (
)
inline

STL-like end().

Definition at line 152 of file StrRef.h.

const Char& front ( ) const
throw (
)
inline
Returns
the reference to the first character in the view.

Definition at line 223 of file StrRef.h.

ONIXS_B3_UMDF_MD_NODISCARD size_type length ( ) const
throw (
)
inline
Returns
the the number of characters.

Definition at line 137 of file StrRef.h.

operator std::basic_string< Char > ( ) const
inline

Converts to std::basic_string.

Definition at line 245 of file StrRef.h.

ONIXS_B3_UMDF_MD_NODISCARD const Char& operator[] ( size_type  index) const
throw (
)
inline

Provides the per-item access.

Definition at line 202 of file StrRef.h.

ONIXS_B3_UMDF_MD_NODISCARD const_reverse_iterator rbegin ( ) const
throw (
)
inline

STL-like rbegin().

Definition at line 174 of file StrRef.h.

ONIXS_B3_UMDF_MD_NODISCARD const_reverse_iterator rend ( ) const
throw (
)
inline

STL-like rend().

Definition at line 181 of file StrRef.h.

ONIXS_B3_UMDF_MD_NODISCARD size_type size ( ) const
throw (
)
inline
Returns
the number of characters.

Definition at line 129 of file StrRef.h.

void swap ( StrRef other)
throw (
)
inline

Swaps the content with the given instance.

Definition at line 237 of file StrRef.h.


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