24 namespace OnixS {
namespace ICE {
namespace iMpact {
namespace MarketData {
28 template <
typename ItemType,
typename SizeType>
53 template <
typename OtherItem,
typename OtherSize>
61 template <
typename OtherItem,
typename OtherSize>
112 Item&
at(
const Index index)
const 117 throw std::out_of_range(
"Index outside of range.");
~ArrayRef()
Destructs the instance.
ArrayRef(const ArrayRef< OtherItem, OtherSize > &other)
Initializes instance as copy of other one.
Size size() const
Number of items being referenced.
ArrayRef & operator=(const ArrayRef< OtherItem, OtherSize > &other)
Re-initializes instance as copy of the other one.
Item * items() const
Gets raw pointer to items.
ArrayRef(Item *const items, const Size itemsCount)
Initializes instance referencing to given data.
Item & operator[](Index index) const
Accesses to item by index.
ArrayRef()
Initializes instance referencing to nothing.
bool empty() const
Indicates whether array has no items.
void reset(Item *const items=0, const Size size=0)
Resets array with new items and size.
Item & at(const Index index) const
Accesses to item by index checking access bounds.
Iterator begin() const
Iterator referencing to the first item.
Iterator end() const
Iterator referencing to the item behind the last item.