ivl 679
|
1-dimensional array of type T More...
#include <empty_class.hpp>
Inherits array_common_base< array< T, data::empty< DERIVED_INFO > > >.
Public Member Functions | |
Size functions | |
size_t | length () const |
Get the length of the element sequence. | |
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 | |
T | operator[] (size_t i) const |
Constructors | |
array () | |
Default constructor. | |
array (const this_type &a) | |
Copy-constructor. | |
~array () | |
destructor | |
Assignement Operators | |
this_type & | operator= (const this_type &a) |
Copy-Assign another array of identical type. |
1-dimensional array of type T
This class defines an simple one-dimensional array.
this_type& array< T, data::empty< DERIVED_INFO > >::operator= | ( | const this_type & | a | ) | [inline] |
Copy-Assign another array of identical type.
eg:
ivl::array<int> a(10, 0); ivl::array<int> b; b = a;
T array< T, data::empty< DERIVED_INFO > >::operator[] | ( | size_t | i | ) | const [inline] |
Returns the element found at position offset does not do any range checking. so it is allowed to do read-only access to any element of an empty array though it will always be 0. this special feature might be of use for some special functions.