OnixS C++ CME MDP Premium Market Data Handler  5.8.9
API Documentation
VectorOverArray< ItemType, SizeType > Class Template Reference

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

Public Types

typedef ItemType Item
 
typedef SizeType Size
 
typedef const ItemConstIterator
 
typedef ItemIterator
 

Public Member Functions

 VectorOverArray ()
 
 VectorOverArray (Item *items, Size capacity)
 
 ~VectorOverArray ()
 
bool empty () const
 
Size size () const
 
Size capacity () const
 
Iterator begin ()
 
ConstIterator begin () const
 
Iterator end ()
 
ConstIterator end () const
 
Itemfront ()
 
const Itemfront () const
 
Itemoperator[] (Size index)
 
const Itemoperator[] (Size index) const
 
Itemat (Size index)
 
const Itemat (Size index) const
 
IteminsertExtrude (Size index)
 
void erase (Size index)
 
void resize (Size newSize, const Item &item=Item())
 

Detailed Description

template<typename ItemType, typename SizeType>
class OnixS::CME::MDH::VectorOverArray< ItemType, SizeType >

Definition at line 36 of file VectorOverArray.h.

Member Typedef Documentation

typedef const Item* ConstIterator

Aliases constant iterator type.

Definition at line 46 of file VectorOverArray.h.

typedef ItemType Item

Aliases container item type.

Definition at line 40 of file VectorOverArray.h.

typedef Item* Iterator

Aliases mutable iterator type.

Definition at line 49 of file VectorOverArray.h.

typedef SizeType Size

Aliases dimension type.

Definition at line 43 of file VectorOverArray.h.

Constructor & Destructor Documentation

VectorOverArray ( )
inline

Initializes instance with no items.

Definition at line 52 of file VectorOverArray.h.

VectorOverArray ( Item items,
Size  capacity 
)
inline

Initializes instance over given fixed-size array.

Definition at line 60 of file VectorOverArray.h.

~VectorOverArray ( )
inline

Cleans everything up.

Definition at line 68 of file VectorOverArray.h.

Member Function Documentation

Item& at ( Size  index)
inline

Accesses to item by index checking access bounds.

Definition at line 149 of file VectorOverArray.h.

const Item& at ( Size  index) const
inline

Accesses to item by index checking access bounds.

Definition at line 159 of file VectorOverArray.h.

Iterator begin ( )
inline

Iterator referencing to the first item.

Definition at line 92 of file VectorOverArray.h.

ConstIterator begin ( ) const
inline

Iterator referencing to the first item.

Definition at line 98 of file VectorOverArray.h.

Size capacity ( ) const
inline

Total capacity of container.

Definition at line 86 of file VectorOverArray.h.

bool empty ( ) const
inline

Indicates whether instance has no items.

Definition at line 74 of file VectorOverArray.h.

Iterator end ( )
inline

Iterator referencing to the item behind the last item.

Definition at line 104 of file VectorOverArray.h.

ConstIterator end ( ) const
inline

Iterator referencing to the item behind the last item.

Definition at line 110 of file VectorOverArray.h.

void erase ( Size  index)
inline

Erases item at given position.

Definition at line 194 of file VectorOverArray.h.

Item& front ( )
inline

Provides access to the front item if available.

Definition at line 116 of file VectorOverArray.h.

const Item& front ( ) const
inline

Provides access to the front item if available.

Definition at line 124 of file VectorOverArray.h.

Item& insertExtrude ( Size  index)
inline

Inserts new item to given position.

Items under higher indices are moved back. Last item is extruded thus keeping size of or container constant.

Returns
Reference to an item at requested position for further update.

Definition at line 174 of file VectorOverArray.h.

Item& operator[] ( Size  index)
inline

Accesses to item by index.

Definition at line 132 of file VectorOverArray.h.

const Item& operator[] ( Size  index) const
inline

Accesses to item by index.

Definition at line 140 of file VectorOverArray.h.

void resize ( Size  newSize,
const Item item = Item() 
)
inline

Resizes container.

If vector is enlarged, new items constructed as copies of given instance.

Definition at line 220 of file VectorOverArray.h.

Size size ( ) const
inline

Number of items.

Definition at line 80 of file VectorOverArray.h.


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