ivl 679
|
1-dimensional array of type T More...
#include <range_class.hpp>
Inherits array_common_base< array< T, data::range< 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 | |
const_reference | operator[] (size_t i) const |
Returns the element found at position offset. | |
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. | |
Print functions | |
std::ostream & | print (std::ostream &os) const |
Print an array of range type (specialized print function) | |
Public Attributes | |
T | first |
the starting element | |
T | last |
the ending element | |
step_type | step |
the distance between elements |
1-dimensional array of type T
This class defines an simple one-dimensional array.
this_type& array< T, data::range< 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;