OnixS C++ eSpeed ITCH Market Data Handler 1.7.3
API documentation
Loading...
Searching...
No Matches
StrRef Class Reference

Public Types

typedef const CharIterator

Public Member Functions

ONIXS_ESPEED_ITCH_CONSTEXPR StrRef () ONIXS_ESPEED_ITCH_NOTHROW
 StrRef (const Char *chars, size_t size) ONIXS_ESPEED_ITCH_NOTHROW
template<size_t Size>
ONIXS_ESPEED_ITCH_CONSTEXPR StrRef (const char(&value)[Size]) ONIXS_ESPEED_ITCH_NOTHROW
 StrRef (const std::string &string) ONIXS_ESPEED_ITCH_NOTHROW
 StrRef (const StrRef &other) ONIXS_ESPEED_ITCH_NOTHROW
bool empty () const ONIXS_ESPEED_ITCH_NOTHROW
const Charitems () const ONIXS_ESPEED_ITCH_NOTHROW
size_t size () const ONIXS_ESPEED_ITCH_NOTHROW
Iterator begin () const ONIXS_ESPEED_ITCH_NOTHROW
Iterator end () const ONIXS_ESPEED_ITCH_NOTHROW
void reset () ONIXS_ESPEED_ITCH_NOTHROW
void reset (const Char *chars, size_t size) ONIXS_ESPEED_ITCH_NOTHROW
const Charoperator[] (size_t index) const
const Charat (size_t index) const
StrRefoperator= (const StrRef &other) ONIXS_ESPEED_ITCH_NOTHROW
void swap (StrRef &other) ONIXS_ESPEED_ITCH_NOTHROW
StrRef trim () const ONIXS_ESPEED_ITCH_NOTHROW

Detailed Description

Definition at line 40 of file String.h.

Member Typedef Documentation

◆ Iterator

typedef const Char* Iterator

STL-like iterator.

Definition at line 44 of file String.h.

Constructor & Destructor Documentation

◆ StrRef() [1/5]

ONIXS_ESPEED_ITCH_CONSTEXPR StrRef ( )
inline

Initializes blank instance.

Definition at line 48 of file String.h.

◆ StrRef() [2/5]

StrRef ( const Char * chars,
size_t size )
inline

Full initialization.

Definition at line 56 of file String.h.

◆ StrRef() [3/5]

template<size_t Size>
ONIXS_ESPEED_ITCH_CONSTEXPR StrRef ( const char(&) value[Size])
inlineexplicit

Full initialization.

Definition at line 69 of file String.h.

◆ StrRef() [4/5]

StrRef ( const std::string & string)
inlineexplicit

Full initialization.

Definition at line 78 of file String.h.

◆ StrRef() [5/5]

StrRef ( const StrRef & other)
inline

Initializes as clone of other instance. Data referenced by clone is not copied. Instead both instances will refer to same text segment.

Definition at line 90 of file String.h.

Member Function Documentation

◆ at()

const Char & at ( size_t index) const
inline

Definition at line 184 of file String.h.

◆ begin()

Iterator begin ( ) const
inline

STL-like begin().

Definition at line 145 of file String.h.

◆ empty()

bool empty ( ) const
inline

Indicates whether array of zero length.

Definition at line 124 of file String.h.

◆ end()

Iterator end ( ) const
inline

STL-like end().

Definition at line 152 of file String.h.

◆ items()

const Char * items ( ) const
inline

Read-only content.

Definition at line 131 of file String.h.

◆ operator=()

StrRef & operator= ( const StrRef & other)
inline

Reinitializes from another instance.

Definition at line 195 of file String.h.

◆ operator[]()

const Char & operator[] ( size_t index) const
inline

Definition at line 177 of file String.h.

◆ reset() [1/2]

void reset ( )
inline

Resets reference to nothing.

Definition at line 159 of file String.h.

◆ reset() [2/2]

void reset ( const Char * chars,
size_t size )
inline

Updates data being referenced.

Definition at line 167 of file String.h.

◆ size()

size_t size ( ) const
inline

Number of chars.

Definition at line 138 of file String.h.

◆ swap()

void swap ( StrRef & other)
inline

Swaps content with other instance.

Definition at line 207 of file String.h.

◆ trim()

StrRef trim ( ) const
inline

Definition at line 216 of file String.h.