OnixS ICE iMpact Multicast Price Feed Handler C++ library 8.18.0
API documentation
Loading...
Searching...
No Matches
ArrayRef< ItemType, SizeType > Class Template Reference

Public Types

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

Public Member Functions

 ArrayRef ()
 ArrayRef (Item *const items, const Size itemsCount)
template<typename OtherItem, typename OtherSize>
 ArrayRef (const ArrayRef< OtherItem, OtherSize > &other)
template<typename OtherItem, typename OtherSize>
ArrayRefoperator= (const ArrayRef< OtherItem, OtherSize > &other)
 ~ArrayRef ()
bool empty () const
Size size () const
Itemitems () const
Iterator begin () const
Iterator end () const
Itemoperator[] (Index index) const
Itemat (const Index index) const
void reset (Item *const items=0, const Size size=0)

Protected Attributes

Itemitems_
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.

Definition at line 29 of file Containers.h.

Member Typedef Documentation

◆ Index

template<typename ItemType, typename SizeType>
typedef SizeType Index

Definition at line 35 of file Containers.h.

◆ Item

template<typename ItemType, typename SizeType>
typedef ItemType Item

Definition at line 32 of file Containers.h.

◆ Iterator

template<typename ItemType, typename SizeType>
typedef ItemType* Iterator

Definition at line 33 of file Containers.h.

◆ Size

template<typename ItemType, typename SizeType>
typedef SizeType Size

Definition at line 36 of file Containers.h.

Constructor & Destructor Documentation

◆ ArrayRef() [1/3]

template<typename ItemType, typename SizeType>
ArrayRef ( )
inline

Initializes instance referencing to nothing.

Definition at line 39 of file Containers.h.

◆ ArrayRef() [2/3]

template<typename ItemType, typename SizeType>
ArrayRef ( Item *const items,
const Size itemsCount )
inline

Initializes instance referencing to given data.

Definition at line 46 of file Containers.h.

◆ ArrayRef() [3/3]

template<typename ItemType, typename SizeType>
template<typename OtherItem, typename OtherSize>
ArrayRef ( const ArrayRef< OtherItem, OtherSize > & other)
inline

Initializes instance as copy of other one.

Definition at line 54 of file Containers.h.

◆ ~ArrayRef()

template<typename ItemType, typename SizeType>
~ArrayRef ( )
inline

Destructs the instance.

Definition at line 71 of file Containers.h.

Member Function Documentation

◆ at()

template<typename ItemType, typename SizeType>
Item & at ( const Index index) const
inline

Accesses to item by index checking access bounds.

Definition at line 110 of file Containers.h.

◆ begin()

template<typename ItemType, typename SizeType>
Iterator begin ( ) const
inline

Iterator referencing to the first item.

Definition at line 92 of file Containers.h.

◆ empty()

template<typename ItemType, typename SizeType>
bool empty ( ) const
inline

Indicates whether array has no items.

Definition at line 74 of file Containers.h.

◆ end()

template<typename ItemType, typename SizeType>
Iterator end ( ) const
inline

Iterator referencing to the item behind the last item.

Definition at line 98 of file Containers.h.

◆ items()

template<typename ItemType, typename SizeType>
Item * items ( ) const
inline

Gets raw pointer to items.

Definition at line 86 of file Containers.h.

◆ operator=()

template<typename ItemType, typename SizeType>
template<typename OtherItem, typename OtherSize>
ArrayRef & operator= ( const ArrayRef< OtherItem, OtherSize > & other)
inline

Re-initializes instance as copy of the other one.

Definition at line 62 of file Containers.h.

◆ operator[]()

template<typename ItemType, typename SizeType>
Item & operator[] ( Index index) const
inline

Accesses to item by index.

Definition at line 104 of file Containers.h.

◆ reset()

template<typename ItemType, typename SizeType>
void reset ( Item *const items = 0,
const Size size = 0 )
inline

Resets array with new items and size.

Definition at line 121 of file Containers.h.

◆ size()

template<typename ItemType, typename SizeType>
Size size ( ) const
inline

Number of items being referenced.

Definition at line 80 of file Containers.h.

Member Data Documentation

◆ items_

template<typename ItemType, typename SizeType>
Item* items_
protected

Definition at line 128 of file Containers.h.

◆ size_

template<typename ItemType, typename SizeType>
Size size_
protected

Definition at line 129 of file Containers.h.