OnixS C++ CME Streamlined Market Data Handler
API documentation
StrRef Class Reference

#include <String.h>

Public Types

typedef const CharIterator

Public Member Functions

 StrRef ()
 StrRef (const Char *chars, size_t size)
 StrRef (const StrRef &other)
bool empty () const
const Charitems () const
size_t size () const
Iterator begin () const
Iterator end () const
void reset ()
void reset (const Char *chars, size_t size)
const Charoperator[] (size_t index) const
const Charat (size_t index) const
StrRefoperator= (const StrRef &other)
void swap (StrRef &other)

Detailed Description

Definition at line 39 of file String.h.

Member Typedef Documentation

typedef const Char* Iterator

STL-like iterator.

Definition at line 43 of file String.h.

Constructor & Destructor Documentation

StrRef ( )

Initializes blank instance.

Definition at line 46 of file String.h.

StrRef ( const Char chars,
size_t  size 

Full initialization.

Definition at line 53 of file String.h.

StrRef ( const StrRef other)

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

Member Function Documentation

const Char& at ( size_t  index) const

Definition at line 126 of file String.h.

Iterator begin ( ) const

STL-like begin().

Definition at line 91 of file String.h.

bool empty ( ) const

Indicates whether array of zero length.

Definition at line 73 of file String.h.

Iterator end ( ) const

STL-like end().

Definition at line 97 of file String.h.

const Char* items ( ) const

Read-only content.

Definition at line 79 of file String.h.

StrRef& operator= ( const StrRef other)

Reinitializes from another instance.

Definition at line 137 of file String.h.

const Char& operator[] ( size_t  index) const

Definition at line 119 of file String.h.

void reset ( )

Resets reference to nothing.

Definition at line 103 of file String.h.

void reset ( const Char chars,
size_t  size 

Updates data being referenced.

Definition at line 110 of file String.h.

size_t size ( ) const

Number of chars.

Definition at line 85 of file String.h.

void swap ( StrRef other)

Swaps content with other instance.

Definition at line 148 of file String.h.

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