Gecode::Support::DynamicArray< T > Class Template Reference
[Support algorithms and datastructures]
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] |
template<class T>
Gecode::Support::DynamicArray< T >::DynamicArray | ( | const DynamicArray< T > & | a | ) | [inline] |
template<class T>
Gecode::Support::DynamicArray< T >::~DynamicArray | ( | void | ) | [inline] |
Member Function Documentation
template<class T>
const DynamicArray< T > & Gecode::Support::DynamicArray< T >::operator= | ( | const DynamicArray< T > & | a | ) | [inline] |
template<class T>
T & Gecode::Support::DynamicArray< T >::operator[] | ( | int | i | ) | [inline] |
template<class T>
const T & Gecode::Support::DynamicArray< T >::operator[] | ( | int | i | ) | const [inline] |
template<class T>
Gecode::Support::DynamicArray< T >::operator T * | ( | void | ) | [inline] |
The documentation for this class was generated from the following file:
- gecode/support/dynamic-array.icc (Revision: 4971)