ivl 679
|
1-dimensional array of type T More...
#include <array.hpp>
Inherits ivl::array_common_base< C >.
Public Types | |
typedef ptrdiff_t | diff_type |
difference type of iterators | |
typedef size_t | size_type |
parameter of resize, in each class of the hierarchy | |
Public Member Functions | |
~array () | |
destructor | |
Size functions | |
size_t | length () const |
size_type | size () const |
Get the size of the array. generic-class function. | |
size_t | numel () const |
Get the length of the element sequence. | |
Element access | |
Access a unique element by specifying the position | |
const_reference | operator[] (typename tool::brackets_arg i) const |
Special members | |
class specialization specific members | |
void | setref (const A &a) |
template<class D > | |
bool | self_overlap (const D &a) const |
void | init (const A &a) |
void | init (const array &o) |
Constructors | |
array () | |
default constructor. setref needs to be called to complete construction. | |
array (const A &a) | |
construction from the reference arrays | |
array (const array &o) | |
copy constructor | |
filler constructors | |
array (size_t) | |
unused constructor with size_type | |
array (size_t, const T &) | |
unused constructor with size_type and T& | |
template<class J , class D > | |
array (size_t, const array< J, D > &) | |
unused constructor with size_type and T& or A& | |
array (size_t, const T *) | |
unused constructor with size_type and T* | |
template<class J , class S > | |
array (const array< J, S > &a) | |
unused constructor with other type array |
1-dimensional array of type T
This class defines an simple one-dimensional array.
size_t ivl::array< T, data::unary_elem_func< F, A, DERIVED_INFO > >::length | ( | ) | const [inline] |
Get the length of the element sequence Optional length property
const_reference ivl::array< T, data::unary_elem_func< F, A, DERIVED_INFO > >::operator[] | ( | typename tool::brackets_arg | i | ) | const [inline] |
Returns the const element found at position offset Optional random access operator []
void ivl::array< T, data::unary_elem_func< F, A, DERIVED_INFO > >::setref | ( | const A & | a | ) | [inline] |
set the reference arrays. needs to be called exactly once right after the construction except from the corresponding constructor or the copy constructor.