OnixS C++ CME Market Data Handler  2.56.0.0
Public Types | Public Member Functions | Protected Attributes | List of all members
ArrayRef< ItemType, SizeType > Class Template Reference

Represents reference to segment of built-in array of items. More...

Public Types

typedef ItemType Item
 
typedef ItemType * Iterator
 
typedef SizeType Index
 
typedef SizeType Size
 

Public Member Functions

 ArrayRef ()
 Initializes instance referencing to nothing.
 
 ArrayRef (Item *items, Size itemsCount)
 Initializes instance referencing to given data.
 
template<typename OtherItem , typename OtherSize >
 ArrayRef (const ArrayRef< OtherItem, OtherSize > &other)
 Initializes instance as copy of other one.
 
bool empty () const
 Indicates whether array has no items.
 
Size size () const
 Number of items being referenced.
 
Iterator begin () const
 Iterator referencing to the first item.
 
Iterator end () const
 Iterator referencing to the item behind the last item.
 
Item & operator[] (Index index) const
 Accesses to item by index.
 
Item & at (Index index) const
 Accesses to item by index checking access bounds. More...
 
template<typename OtherItem , typename OtherSize >
ArrayRef< Item, Size > & operator= (const ArrayRef< OtherItem, OtherSize > &other)
 Re-initializes instance as copy of the other one.
 

Protected Attributes

Item * items_
 
Size size_
 

Detailed Description

template<typename ItemType, typename SizeType>
class OnixS::CME::MarketData::ArrayRef< ItemType, SizeType >

Represents reference to segment of built-in array of items.

Member Function Documentation

Item& at ( Index  index) const
inline

Accesses to item by index checking access bounds.