#include <Containers.h>
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 > | |
ArrayRef & | operator= (const ArrayRef< OtherItem, OtherSize > &other) |
~ArrayRef () | |
bool | empty () const |
Size | size () const |
Item * | items () const |
Iterator | begin () const |
Iterator | end () const |
Item & | operator[] (Index index) const |
Item & | at (const Index index) const |
void | reset (Item *const items=0, const Size size=0) |
Protected Attributes | |
Item * | items_ |
Size | size_ |
Represents reference to segment of built-in array of items.
Definition at line 29 of file Containers.h.
typedef SizeType Index |
Definition at line 35 of file Containers.h.
typedef ItemType Item |
Definition at line 32 of file Containers.h.
typedef ItemType* Iterator |
Definition at line 33 of file Containers.h.
typedef SizeType Size |
Definition at line 36 of file Containers.h.
|
inline |
Initializes instance referencing to nothing.
Definition at line 39 of file Containers.h.
Initializes instance referencing to given data.
Definition at line 46 of file Containers.h.
Initializes instance as copy of other one.
Definition at line 54 of file Containers.h.
|
inline |
Destructs the instance.
Definition at line 71 of file Containers.h.
Accesses to item by index checking access bounds.
Definition at line 112 of file Containers.h.
|
inline |
Iterator referencing to the first item.
Definition at line 94 of file Containers.h.
|
inline |
Indicates whether array has no items.
Definition at line 76 of file Containers.h.
|
inline |
Iterator referencing to the item behind the last item.
Definition at line 100 of file Containers.h.
|
inline |
Gets raw pointer to items.
Definition at line 88 of file Containers.h.
Re-initializes instance as copy of the other one.
Definition at line 62 of file Containers.h.
Accesses to item by index.
Definition at line 106 of file Containers.h.
Resets array with new items and size.
Definition at line 121 of file Containers.h.
|
inline |
Number of items being referenced.
Definition at line 82 of file Containers.h.
|
protected |
Definition at line 128 of file Containers.h.
|
protected |
Definition at line 129 of file Containers.h.