Generated on Mon Aug 25 11:35:54 2008 for Gecode by doxygen 1.5.6

Gecode::Support::DynamicArray< T > Class Template Reference
[Support algorithms and datastructures]

List of all members.


Detailed Description

template<class T>
class Gecode::Support::DynamicArray< T >

Array with arbitrary number of elements.

Definition at line 48 of file dynamic-array.icc.


Public Member Functions

 DynamicArray (int m=32)
 Initialize with size m.
 DynamicArray (const DynamicArray< T > &a)
 Copy elements from array a.
 ~DynamicArray (void)
 Release memory.
const DynamicArray< T > & operator= (const DynamicArray< T > &a)
 Assign array (copy elements from a).
T & operator[] (int i)
 Return element at position i (possibly resize).
const T & operator[] (int) const
 Return element at position i.
 operator T * (void)
 Cast in to pointer of type T.

Constructor & Destructor Documentation

template<class T>
Gecode::Support::DynamicArray< T >::DynamicArray ( int  m = 32  )  [inline]

Initialize with size m.

Definition at line 79 of file dynamic-array.icc.

template<class T>
Gecode::Support::DynamicArray< T >::DynamicArray ( const DynamicArray< T > &  a  )  [inline]

Copy elements from array a.

Definition at line 84 of file dynamic-array.icc.

template<class T>
Gecode::Support::DynamicArray< T >::~DynamicArray ( void   )  [inline]

Release memory.

Definition at line 91 of file dynamic-array.icc.


Member Function Documentation

template<class T>
const DynamicArray< T > & Gecode::Support::DynamicArray< T >::operator= ( const DynamicArray< T > &  a  )  [inline]

Assign array (copy elements from a).

Definition at line 97 of file dynamic-array.icc.

template<class T>
T & Gecode::Support::DynamicArray< T >::operator[] ( int  i  )  [inline]

Return element at position i (possibly resize).

Definition at line 117 of file dynamic-array.icc.

template<class T>
const T & Gecode::Support::DynamicArray< T >::operator[] ( int  i  )  const [inline]

Return element at position i.

Definition at line 125 of file dynamic-array.icc.

template<class T>
Gecode::Support::DynamicArray< T >::operator T * ( void   )  [inline]

Cast in to pointer of type T.

Definition at line 132 of file dynamic-array.icc.


The documentation for this class was generated from the following file: