Generated on Sat Nov 11 01:12:22 2006 for Gecode by doxygen 1.5.1

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

#include <dynamic-array.hh>

List of all members.


Detailed Description

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

Array with arbitrary number of elements.

Requires

Definition at line 39 of file dynamic-array.hh.

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 70 of file dynamic-array.hh.

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

Copy elements from array a.

Definition at line 75 of file dynamic-array.hh.

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

Release memory.

Definition at line 82 of file dynamic-array.hh.


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 88 of file dynamic-array.hh.

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

Return element at position i (possibly resize).

Definition at line 108 of file dynamic-array.hh.

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

Return element at position i.

Definition at line 116 of file dynamic-array.hh.

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

Cast in to pointer of type T.

Definition at line 123 of file dynamic-array.hh.


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