OnixS C++ CME MDP Premium Market Data Handler  5.8.9
API Documentation
TinyStrSet Class Reference

#include <OnixS/CME/MDH/TinySet.h>

Public Types

typedef StrRef Item
 
typedef TinyStrSetIterator ConstIterator
 

Public Member Functions

 TinyStrSet ()
 
 TinyStrSet (size_t capacity)
 
 TinyStrSet (const TinyStrSet &other)
 
 ~TinyStrSet ()
 
bool empty () const
 
size_t size () const
 
void reserve (size_t capacity)
 
ConstIterator begin () const
 
ConstIterator end () const
 
ConstIterator find (const Item &item) const
 
bool insert (const Item &item)
 
bool erase (const Item &item)
 
void clear ()
 
void swap (TinyStrSet &other)
 

Detailed Description

In contrast to TinySet<StrRef> instantiation, given class allocates space for content being referenced by StrRef instances inserted into the given set thus making content safe for referencing.

Definition at line 240 of file TinySet.h.

Member Typedef Documentation

Aliases iterator type.

Definition at line 247 of file TinySet.h.

typedef StrRef Item

Items of collection.

Definition at line 244 of file TinySet.h.

Constructor & Destructor Documentation

TinyStrSet ( )
inline

Initializes the empty set.

Definition at line 250 of file TinySet.h.

TinyStrSet ( size_t  capacity)
inlineexplicit

Initializes the empty set capacious enough to store the given number of items.

Definition at line 254 of file TinySet.h.

TinyStrSet ( const TinyStrSet other)
inline

Initializes as a copy of the other instance.

Definition at line 260 of file TinySet.h.

~TinyStrSet ( )
inline

Destructs the internal storage.

Definition at line 266 of file TinySet.h.

Member Function Documentation

ConstIterator begin ( ) const
inline

Provides iterating facilities.

Definition at line 288 of file TinySet.h.

void clear ( )
inline

Brings the set to the blank (empty) state.

Definition at line 343 of file TinySet.h.

bool empty ( ) const
inline

Indicates whether the set is empty.

Definition at line 269 of file TinySet.h.

ConstIterator end ( ) const
inline

Provides iterating facilities.

Definition at line 294 of file TinySet.h.

bool erase ( const Item item)
inline

Removes the given item from the set.

Returned value indicates whether item was actually erased.

Definition at line 330 of file TinySet.h.

ConstIterator find ( const Item item) const
inline

Looks for the given item and returns iterator pointing to the found entry or to nowhere.

Definition at line 301 of file TinySet.h.

bool insert ( const Item item)
inline

Inserts the given item into the set.

Content referenced by the item being inserted is copied into the internal storage.

Returned value indicates whether the item was actually inserted.

Definition at line 314 of file TinySet.h.

void reserve ( size_t  capacity)
inline

Makes the internal storage capacious enough to store the given number of items.

Definition at line 282 of file TinySet.h.

size_t size ( ) const
inline

Returns the number of items in the set.

Definition at line 275 of file TinySet.h.

void swap ( TinyStrSet other)
inline

Exchanges content with the other instance.

Definition at line 349 of file TinySet.h.


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