Generated on Wed Nov 1 15:05:13 2006 for Gecode by doxygen 1.4.5

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

Inherits Gecode::ArgArrayBase< T >< 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 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

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

Allocate array with n elements.

Definition at line 823 of file array.icc.

template<class T>
Gecode::PrimArgArray< T >::PrimArgArray int  n,
e0,
  ...
 

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

Definition at line 827 of file array.icc.

template<class T>
Gecode::PrimArgArray< T >::PrimArgArray int  n,
const T *  e
 

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

Definition at line 838 of file array.icc.

template<class T>
Gecode::PrimArgArray< T >::PrimArgArray const PrimArgArray< T > &  a  ) 
 

Initialize from primitive argument array a (copy elements).

Definition at line 845 of file array.icc.


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