OnixS C++ SGX Titan OUCH Trading Handler  1.2.0
API documentation
StrRef Class Reference

#include <OnixS/SgxTitan/Trading/OUCH/String.h>

Public Types

typedef const CharIterator
 

Public Member Functions

ONIXS_SGX_OUCH_CONSTEXPR StrRef () throw ()
 
 StrRef (const Char *chars, size_t size) throw ()
 
template<size_t Size>
ONIXS_SGX_OUCH_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 41 of file String.h.

Member Typedef Documentation

typedef const Char* Iterator

STL-like iterator.

Definition at line 45 of file String.h.

Constructor & Destructor Documentation

ONIXS_SGX_OUCH_CONSTEXPR StrRef ( )
throw (
)
inline

Initializes blank instance.

Definition at line 49 of file String.h.

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

Full initialization.

Definition at line 57 of file String.h.

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

Full initialization.

Definition at line 70 of file String.h.

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

Full initialization.

Definition at line 79 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 91 of file String.h.

Member Function Documentation

const Char& at ( size_t  index) const
inline

Definition at line 185 of file String.h.

Iterator begin ( ) const
throw (
)
inline

STL-like begin().

Definition at line 146 of file String.h.

bool empty ( ) const
throw (
)
inline

Indicates whether array of zero length.

Definition at line 125 of file String.h.

Iterator end ( ) const
throw (
)
inline

STL-like end().

Definition at line 153 of file String.h.

const Char* items ( ) const
throw (
)
inline

Read-only content.

Definition at line 132 of file String.h.

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

Reinitializes from another instance.

Definition at line 196 of file String.h.

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

Definition at line 178 of file String.h.

void reset ( )
throw (
)
inline

Resets reference to nothing.

Definition at line 160 of file String.h.

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

Updates data being referenced.

Definition at line 168 of file String.h.

size_t size ( ) const
throw (
)
inline

Number of chars.

Definition at line 139 of file String.h.

void swap ( StrRef other)
throw (
)
inline

Swaps content with other instance.

Definition at line 208 of file String.h.

StrRef trim ( ) const
throw (
)
inline

Definition at line 217 of file String.h.


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