Allows to allocate and manage several instances of Object at the same time. More...
#include </home/chochlik/devel/oglplus/include/oglplus/object/array.hpp>
Inherits oglplus::ObjGenDelOps< ObjTag >.
Public Types | |
typedef Reference< Object > | reference |
Reference to elements. | |
typedef const reference | const_reference |
Reference to const elements. | |
typedef SeqIterator< Object > | iterator |
Iterator type. | |
typedef iterator | const_iterator |
Const-iterator type. | |
Public Member Functions | |
Array (Array &&temp) | |
Array is moveable. | |
Array (std::size_t count) | |
Constructs an an array of count instances of Object. | |
Array (std::size_t n, typename ObjectSubtype< ObjTag >::Type type) | |
Constructs an an array of n instances of Object with type . | |
bool | empty (void) const |
Returns true if the array is empty. | |
std::size_t | size (void) const |
Returns the number of instances in the array. | |
reference | at (std::size_t index) |
Returns a reference to the i-th instance in the array. | |
const_reference | at (NameT index) const |
Returns a const reference to the i-th instance in the array. | |
reference | operator[] (std::size_t index) |
Returns a reference to the i-th instance in the array. | |
const_reference | operator[] (std::size_t index) const |
Returns a const reference to the i-th instance in the array. | |
const_iterator | begin (void) const |
Returns an iterator pointing to the first element. | |
const_iterator | end (void) const |
Returns an iterator pointing past the last element. | |
Allows to allocate and manage several instances of Object at the same time.
This class is non-copyable.