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

1-dimensional array of type T More...

#include <empty_class.hpp>

Inherits array_common_base< array< T, data::empty< DERIVED_INFO > > >.

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 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& 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 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