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

typedef ptrdiff_t diff_type
 difference type of iterators
typedef size_t size_type
 parameter of resize, in each class of the hierarchy

Public Member Functions

 ~array ()
 destructor
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 T & operator[] (size_t offset) const
 Returns the const element found at position offset.
Constructors
 array ()
 Default constructor.
 array (size_t count)
 Construnct by defining an initial number of elements.
 array (int count)
 Construnct by defining an initial number of elements.
 array (long int count)
 Construnct by defining an initial number of elements.
 array (size_t count, const T &s)
 Construct by defining a number of elements and initial value.
 array (size_t count, const T *ptr)
 array (const this_type &a)
 Copy-constructor.
template<class J , class S >
 array (const array< J, S > &a, size_t n)
template<class J , class S >
 array (const array< J, S > &a)
template<class J , class S >
 array (size_t count, const array< J, S > &a)
Assignement Operators
this_typeoperator= (const this_type &o)
 Copy-Assign another array of identical type.

Detailed Description

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

1-dimensional array of type T

This class defines an simple one-dimensional array.


Constructor & Destructor Documentation

template<class T , class DERIVED_INFO >
ivl::array< T, data::ref_val_repeat< DERIVED_INFO > >::array ( size_t  count,
const T *  ptr 
) [inline]

This constructor should be unused but has to be defined for child compatibility.

template<class T , class DERIVED_INFO >
template<class J , class S >
ivl::array< T, data::ref_val_repeat< DERIVED_INFO > >::array ( const array< J, S > &  a,
size_t  n 
) [inline]

This constructor should be unused but has to be defined for child compatibility.

template<class T , class DERIVED_INFO >
template<class J , class S >
ivl::array< T, data::ref_val_repeat< DERIVED_INFO > >::array ( const array< J, S > &  a) [inline]

This constructor should be unused but has to be defined for child compatibility.

template<class T , class DERIVED_INFO >
template<class J , class S >
ivl::array< T, data::ref_val_repeat< DERIVED_INFO > >::array ( size_t  count,
const array< J, S > &  a 
) [inline]

This constructor should be unused but has to be defined for child compatibility.


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