OnixS C++ CME MDP Streamlined Market Data Handler  1.2.0
API Documentation
TinyStrSet Class Reference

#include <OnixS/CME/Streamlined/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 given set.

Definition at line 301 of file TinySet.h.

Member Typedef Documentation

Aliases iterator type.

Definition at line 311 of file TinySet.h.

typedef StrRef Item

Items of collection.

Definition at line 306 of file TinySet.h.

Constructor & Destructor Documentation

TinyStrSet ( )
inline

Initializes empty set.

Definition at line 314 of file TinySet.h.

TinyStrSet ( size_t  capacity)
inlineexplicit

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

Definition at line 321 of file TinySet.h.

TinyStrSet ( const TinyStrSet other)
inline

Initializes as copy of other instance.

Definition at line 328 of file TinySet.h.

~TinyStrSet ( )
inline

Performs clean-up.

Definition at line 335 of file TinySet.h.

Member Function Documentation

ConstIterator begin ( ) const
inline

Provides iterating facilities.

Definition at line 362 of file TinySet.h.

void clear ( )
inline

Brings set to blank/empty state.

Definition at line 436 of file TinySet.h.

bool empty ( ) const
inline

Indicates whether set is empty.

Definition at line 340 of file TinySet.h.

ConstIterator end ( ) const
inline

Provides iterating facilities.

Definition at line 371 of file TinySet.h.

bool erase ( const Item item)
inline

Removes given item from the set.

Returned value indicates whether item was actually erased.

Definition at line 416 of file TinySet.h.

ConstIterator find ( const Item item) const
inline

Tells whether set contains given item.

Definition at line 380 of file TinySet.h.

bool insert ( const Item item)
inline

Inserts item into set.

Content referenced by StrRef instance is copied into internal storage.

Returned value indicates whether item was actually inserted.

Definition at line 399 of file TinySet.h.

void reserve ( size_t  capacity)
inline

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

Definition at line 354 of file TinySet.h.

size_t size ( ) const
inline

Returns number of items in the set.

Definition at line 346 of file TinySet.h.

void swap ( TinyStrSet other)
inline

Exchanges content with the other instance.

Definition at line 443 of file TinySet.h.


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