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