OnixS ICE iMpact Multicast Feed Handler for C++  3.13.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 *const items, const 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.
 
template<typename OtherItem , typename OtherSize >
ArrayRef & operator= (const ArrayRef< OtherItem, OtherSize > &other)
 Re-initializes instance as copy of the other one.
 
 ~ArrayRef ()
 Destructs the instance.
 
bool empty () const
 Indicates whether array has no items.
 
Size size () const
 Number of items being referenced.
 
Item * items () const
 Gets raw pointer to items.
 
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 (const Index index) const
 Accesses to item by index checking access bounds.
 
void reset (Item *const items=0, const Size size=0)
 Resets array with new items and size.
 

Protected Attributes

Item * items_
 
Size size_
 

Detailed Description

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

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