ivl 679
ivl::array< T, data::range< DERIVED_INFO > > Class Template Reference

1-dimensional array of type T More...

#include <array.hpp>

Inherits ivl::array_common_base< C >.

List of all members.

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_typeoperator= (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

first
 the starting element
last
 the ending element
step_type step
 the distance between elements

Detailed Description

template<class T, class DERIVED_INFO>
class ivl::array< T, data::range< DERIVED_INFO > >

1-dimensional array of type T

This class defines an simple one-dimensional array.


Member Function Documentation

template<class T , class DERIVED_INFO >
this_type& ivl::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; 

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations