OnixS C++ SGX Titan ITCH Market Data Handler  1.2.2
API documentation
StrRef Class Reference

#include <OnixS/SgxTitan/MarketData/Itch/String.h>

Public Types

typedef const CharIterator
 

Public Member Functions

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

Detailed Description

Definition at line 40 of file String.h.

Member Typedef Documentation

typedef const Char* Iterator

STL-like iterator.

Definition at line 44 of file String.h.

Constructor & Destructor Documentation

ONIXS_SGXTITAN_ITCH_CONSTEXPR StrRef ( )
throw (
)
inline

Initializes blank instance.

Definition at line 48 of file String.h.

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

Full initialization.

Definition at line 56 of file String.h.

ONIXS_SGXTITAN_ITCH_CONSTEXPR StrRef ( const char(&)  value[Size])
throw (
)
inlineexplicit

Full initialization.

Definition at line 69 of file String.h.

StrRef ( const std::string &  string)
throw (
)
inlineexplicit

Full initialization.

Definition at line 78 of file String.h.

StrRef ( const StrRef other)
throw (
)
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

const Char& at ( size_t  index) const
inline

Definition at line 184 of file String.h.

Iterator begin ( ) const
throw (
)
inline

STL-like begin().

Definition at line 145 of file String.h.

bool empty ( ) const
throw (
)
inline

Indicates whether array of zero length.

Definition at line 124 of file String.h.

Iterator end ( ) const
throw (
)
inline

STL-like end().

Definition at line 152 of file String.h.

const Char* items ( ) const
throw (
)
inline

Read-only content.

Definition at line 131 of file String.h.

StrRef& operator= ( const StrRef other)
throw (
)
inline

Reinitializes from another instance.

Definition at line 195 of file String.h.

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

Definition at line 177 of file String.h.

void reset ( )
throw (
)
inline

Resets reference to nothing.

Definition at line 159 of file String.h.

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

Updates data being referenced.

Definition at line 167 of file String.h.

size_t size ( ) const
throw (
)
inline

Number of chars.

Definition at line 138 of file String.h.

void swap ( StrRef other)
throw (
)
inline

Swaps content with other instance.

Definition at line 207 of file String.h.

StrRef trim ( ) const
throw (
)
inline

Definition at line 216 of file String.h.


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