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

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

Argument array for non-primitive types. More...

#include <array.hpp>

List of all members.

Constructors and initialization



 ArgArray (int n)
 Allocate array with n elements.
 ArgArray (int n, const T *e)
 Allocate array with n elements and initialize with elements from array e.
 ArgArray (const ArgArray< T > &a)
 Initialize from primitive argument array a (copy elements).

Detailed Description

template<class T>
class Gecode::ArgArray< T >

Argument array for non-primitive 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 447 of file array.hpp.


Constructor & Destructor Documentation

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

Allocate array with n elements.

Definition at line 1158 of file array.hpp.

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

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

Definition at line 1162 of file array.hpp.

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

Initialize from primitive argument array a (copy elements).

Definition at line 1170 of file array.hpp.


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