Generated on Wed Jan 4 17:49:18 2006 for Gecode by doxygen 1.4.6

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

Inherits Gecode::ArgArrayBase< T >< T >.

Inherited by Gecode::Int::GCC::OccurArray< 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 324 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 801 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 805 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 816 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 823 of file array.icc.


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