|
ivl 679
|
1-dimensional array of type T More...
#include <mask_class.hpp>
Inherits array_common_base< array< T, data::mask< A, B, DERIVED_INFO > > >.
Public Types | |
| 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_t | length () |
| size_type | size () const |
| Get the size of the array. generic-class function. | |
| size_type | size () |
| size_t | numel () const |
| Get the length of the element sequence. | |
| size_t | numel () |
| void | resize (size_t l) |
| this_type & | calc_length () |
Constructors | |
| array (A &a, const B &b) | |
| The only constructor. | |
| array (const this_type &o) | |
| Copy constructor. | |
Special Members | |
| template<class D > | |
| bool | overlap (const D &d) const |
| template<class D > | |
| bool | self_overlap (const D &d) const |
| template<class J , class P > | |
| derived_type & | assign_array (const array< J, data::empty< P > > &o) |
| template<class D > | |
| derived_type & | assign_array (const D &o) |
Assignement Operators | |
| this_type & | operator= (const this_type &o) |
1-dimensional array of type T
This class defines an simple one-dimensional array.
| this_type& array< T, data::mask< A, B, DERIVED_INFO > >::calc_length | ( | ) | [inline] |
Calculates and stores the length of this array in a "cache" variable. It is not pre-calculated by default cause this could halve the mask-array's performance in some single operations, like copying from-to the mask-array, since length is not needed there (iterators are used).
| size_t array< T, data::mask< A, B, DERIVED_INFO > >::length | ( | ) | const [inline] |
Get the length of the element sequence in a non random-access array, length well might be slow.