Gecode::PrimArgArray< T > Class Template Reference
[Programming variables]
Inherits Gecode::ArgArrayBase< T >< T >.
Detailed Description
template<class T>
class Gecode::PrimArgArray< T >
Argument array for primtive types.
Argument arrays are used as convenient mechanism of passing arguments when calling functions as they combine both the size and the elements of an array. For a small number of elements, memory is allocated by creating an argument array object. Otherwise the memory is allocated from the heap.
Definition at line 330 of file array.icc.
Constructors and initialization | |
PrimArgArray (int n) | |
Allocate array with n elements. | |
PrimArgArray (int n, T e0,...) | |
Allocate array with n elements and initialize with e0, ... | |
PrimArgArray (int n, const T *e) | |
Allocate array with n elements and initialize with elements from array e. | |
PrimArgArray (const PrimArgArray< T > &a) | |
Initialize from primitive argument array a (copy elements). |
Constructor & Destructor Documentation
|
Allocate array with n elements.
|
|
Allocate array with n elements and initialize with e0, ...
|
|
Allocate array with n elements and initialize with elements from array e.
|
|
Initialize from primitive argument array a (copy elements).
|
The documentation for this class was generated from the following file:
- gecode/kernel/array.icc (Revision: 3741)