Generated on Mon Nov 30 23:53:46 2009 for Gecode by doxygen 1.6.1

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

Argument array for primtive types. More...

#include <array.hpp>

List of all members.

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).

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 417 of file array.hpp.


Constructor & Destructor Documentation

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

Allocate array with n elements.

Definition at line 1124 of file array.hpp.

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

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

Definition at line 1128 of file array.hpp.

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 1139 of file array.hpp.

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

Initialize from primitive argument array a (copy elements).

Definition at line 1147 of file array.hpp.


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