OnixS C++ Fenics UST BIMP Market Data Handler  1.1.0
API documentation
StrRef Class Reference

#include <OnixS/FenicsUST/MarketData/Bimp/String.h>

Public Types

typedef const CharIterator
 

Public Member Functions

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

Detailed Description

Definition at line 45 of file String.h.

Member Typedef Documentation

typedef const Char* Iterator

STL-like iterator.

Definition at line 49 of file String.h.

Constructor & Destructor Documentation

StrRef ( )
inline

Initializes blank instance.

Definition at line 52 of file String.h.

StrRef ( const Char chars,
size_t  size 
)
inline

Full initialization.

Definition at line 60 of file String.h.

ONIXS_FENICSUST_BIMP_CONSTEXPR StrRef ( const char(&)  value[Size])
inlineexplicit

Definition at line 72 of file String.h.

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 83 of file String.h.

Member Function Documentation

const Char& at ( size_t  index) const
inline

Definition at line 152 of file String.h.

Iterator begin ( ) const
inline

STL-like begin().

Definition at line 113 of file String.h.

bool empty ( ) const
inline

Indicates whether array of zero length.

Definition at line 92 of file String.h.

Iterator end ( ) const
inline

STL-like end().

Definition at line 120 of file String.h.

const Char* items ( ) const
inline

Read-only content.

Definition at line 99 of file String.h.

StrRef& operator= ( const StrRef other)
inline

Reinitializes from another instance.

Definition at line 163 of file String.h.

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

Definition at line 145 of file String.h.

void reset ( )
inline

Resets reference to nothing.

Definition at line 127 of file String.h.

void reset ( const Char chars,
size_t  size 
)
inline

Updates data being referenced.

Definition at line 135 of file String.h.

size_t size ( ) const
inline

Number of chars.

Definition at line 106 of file String.h.

void swap ( StrRef other)
inline

Swaps content with other instance.

Definition at line 175 of file String.h.

StrRef trim ( ) const
inline

Definition at line 185 of file String.h.


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