#include <OnixS/CME/Streamlined/VectorOverArray.h>
Public Types | |
typedef ItemType | Item |
typedef SizeType | Size |
typedef const Item * | ConstIterator |
typedef Item * | Iterator |
Public Member Functions | |
VectorOverArray () | |
VectorOverArray (Item *items, Size capacity) | |
~VectorOverArray () | |
bool | empty () const |
Size | size () const |
Size | capacity () const |
Iterator | begin () |
ConstIterator | begin () const |
Iterator | end () |
ConstIterator | end () const |
Item & | front () |
const Item & | front () const |
Item & | operator[] (Size index) |
const Item & | operator[] (Size index) const |
Item & | at (Size index) |
const Item & | at (Size index) const |
Item & | insertExtrude (Size index) |
void | erase (Size index) |
void | resize (Size newSize, const Item &item=Item()) |
Definition at line 40 of file VectorOverArray.h.
typedef const Item* ConstIterator |
Aliases constant iterator type.
Definition at line 50 of file VectorOverArray.h.
typedef ItemType Item |
Aliases container item type.
Definition at line 44 of file VectorOverArray.h.
Aliases mutable iterator type.
Definition at line 53 of file VectorOverArray.h.
typedef SizeType Size |
Aliases dimension type.
Definition at line 47 of file VectorOverArray.h.
|
inline |
Initializes instance with no items.
Definition at line 56 of file VectorOverArray.h.
|
inline |
Initializes instance over given fixed-size array.
Definition at line 64 of file VectorOverArray.h.
|
inline |
Cleans everything up.
Definition at line 74 of file VectorOverArray.h.
Accesses to item by index checking access bounds.
Definition at line 169 of file VectorOverArray.h.
Accesses to item by index checking access bounds.
Definition at line 184 of file VectorOverArray.h.
|
inline |
Iterator referencing to the first item.
Definition at line 102 of file VectorOverArray.h.
|
inline |
Iterator referencing to the first item.
Definition at line 109 of file VectorOverArray.h.
|
inline |
Total capacity of container.
Definition at line 95 of file VectorOverArray.h.
|
inline |
Indicates whether instance has no items.
Definition at line 81 of file VectorOverArray.h.
|
inline |
Iterator referencing to the item behind the last item.
Definition at line 116 of file VectorOverArray.h.
|
inline |
Iterator referencing to the item behind the last item.
Definition at line 123 of file VectorOverArray.h.
|
inline |
Erases item at given position.
Definition at line 225 of file VectorOverArray.h.
|
inline |
Provides access to the front item if available.
Definition at line 130 of file VectorOverArray.h.
|
inline |
Provides access to the front item if available.
Definition at line 139 of file VectorOverArray.h.
Inserts new item to given position.
Items under higher indices are moved back. Last item is extruded thus keeping size of or container constant.
Definition at line 204 of file VectorOverArray.h.
Accesses to item by index.
Definition at line 148 of file VectorOverArray.h.
Accesses to item by index.
Definition at line 158 of file VectorOverArray.h.
Resizes container.
If vector is enlarged, new items constructed as copies of given instance.
Definition at line 253 of file VectorOverArray.h.
|
inline |
Number of items.
Definition at line 88 of file VectorOverArray.h.