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

Gecode::PrimArgArray< T > Class Template Reference
[Programming variables]

Inherits Gecode::ArgArrayBase< T >.

List of all members.


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 410 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

template<class T>
Gecode::PrimArgArray< T >::PrimArgArray ( int  n  )  [inline]

Allocate array with n elements.

Definition at line 1063 of file array.icc.

template<class T>
Gecode::PrimArgArray< T >::PrimArgArray ( int  n,
e0,
  ... 
) [inline]

Allocate array with n elements and initialize with e0, ...

Definition at line 1067 of file array.icc.

template<class T>
Gecode::PrimArgArray< T >::PrimArgArray ( int  n,
const T *  e 
) [inline]

Allocate array with n elements and initialize with elements from array e.

Definition at line 1078 of file array.icc.

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

Initialize from primitive argument array a (copy elements).

Definition at line 1086 of file array.icc.


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