|
ivl 679
|
1-dimensional array of type T More...
#include <binary_elem_func_ptr_class.hpp>
Inherits array_common_base< array< T, data::binary_elem_func_ptr< F, A1, A2, SWAP_ARGS, DERIVED_INFO > > >.
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 tool1::brackets_arg i) const |
Special members | |
class specialization specific members | |
| void | validate () |
| validate function called externally when an elem-func array is constructed. | |
| void | setref (ptr_t p1, const A1 &a1, const A2 &a2) |
| template<class A > | |
| bool | self_overlap (const A &a) const |
Constructors | |
| array () | |
| default constructor. setref needs to be called to complete construction. | |
| array (ptr_t p1, const A1 &a1, const A2 &a2) | |
| construction from the reference arrays | |
| array (const array &o) | |
| copy constructor | |
filler chain 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 S > | |
| array (size_t, const array< J, S > &) | |
| 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 array< T, data::binary_elem_func_ptr< F, A1, A2, SWAP_ARGS, DERIVED_INFO > >::length | ( | ) | const [inline] |
Get the length of the element sequence Optional length property
| const_reference array< T, data::binary_elem_func_ptr< F, A1, A2, SWAP_ARGS, DERIVED_INFO > >::operator[] | ( | typename tool1::brackets_arg | i | ) | const [inline] |
Returns the const element found at position offset Optional random access operator []
| void array< T, data::binary_elem_func_ptr< F, A1, A2, SWAP_ARGS, DERIVED_INFO > >::setref | ( | ptr_t | p1, |
| const A1 & | a1, | ||
| const A2 & | a2 | ||
| ) | [inline] |
set the reference arrays. needs to be called exactly once right after the construction except from the corresponding constructor or the copy constructor.