ivl 679
ivl::array< T, data::empty< 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

operator[] (size_t i) const
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.

Detailed Description

template<class T, class DERIVED_INFO>
class ivl::array< T, data::empty< 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::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; 
template<class T , class DERIVED_INFO >
T ivl::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.


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