Gecode::Support::DynamicArray< T > Class Template Reference
[Support algorithms and datastructures]
#include <dynamic-array.hh>
Detailed Description
template<class T>
class Gecode::Support::DynamicArray< T >
Array with arbitrary number of elements.
Requires
#include "gecode/support/dynamic-array.hh"
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
|
Initialize with size m.
Definition at line 70 of file dynamic-array.hh. |
|
Copy elements from array a.
Definition at line 75 of file dynamic-array.hh. |
|
Release memory.
Definition at line 82 of file dynamic-array.hh. |
Member Function Documentation
|
Assign array (copy elements from a).
Definition at line 88 of file dynamic-array.hh. |
|
Return element at position i (possibly resize).
Definition at line 108 of file dynamic-array.hh. |
|
Return element at position i.
Definition at line 116 of file dynamic-array.hh. |
|
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:
- gecode/support/dynamic-array.hh (Revision: 3514)