Generated on Thu Mar 22 10:39:52 2012 for Gecode by doxygen 1.6.3

Gecode::IntArgs Class Reference

Passing integer arguments. More...

#include <int.hh>

List of all members.

Constructors and initialization



 IntArgs (void)
 Allocate empty array.
 IntArgs (int n)
 Allocate array with n elements.
 IntArgs (const SharedArray< int > &x)
 Allocate array and copy elements from x.
 IntArgs (const std::vector< int > &x)
 Allocate array and copy elements from x.
 IntArgs (int n, int e0,...)
 Allocate array with n elements and initialize with e0, ...
 IntArgs (int n, const int *e)
 Allocate array with n elements and initialize with elements from array e.
 IntArgs (const PrimArgArray< int > &a)
 Initialize from primitive argument array a (copy elements).
static IntArgs create (int n, int start, int inc=1)
 Allocate array with n elements such that for all $0\leq i<n: x_i=\text{start}+i\cdot\text{inc}$.

Detailed Description

Passing integer arguments.

Definition at line 592 of file int.hh.


Constructor & Destructor Documentation

Gecode::IntArgs::IntArgs ( void   )  [inline]

Allocate empty array.

Definition at line 46 of file array.hpp.

Gecode::IntArgs::IntArgs ( int  n  )  [inline, explicit]

Allocate array with n elements.

Definition at line 49 of file array.hpp.

Gecode::IntArgs::IntArgs ( const SharedArray< int > &  x  )  [inline]

Allocate array and copy elements from x.

Definition at line 52 of file array.hpp.

Gecode::IntArgs::IntArgs ( const std::vector< int > &  x  )  [inline]

Allocate array and copy elements from x.

Definition at line 58 of file array.hpp.

Gecode::IntArgs::IntArgs ( int  n,
int  e0,
  ... 
)

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

Definition at line 42 of file array.cpp.

Gecode::IntArgs::IntArgs ( int  n,
const int *  e 
) [inline]

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

Definition at line 65 of file array.hpp.

Gecode::IntArgs::IntArgs ( const PrimArgArray< int > &  a  )  [inline]

Initialize from primitive argument array a (copy elements).

Definition at line 68 of file array.hpp.


Member Function Documentation

IntArgs Gecode::IntArgs::create ( int  n,
int  start,
int  inc = 1 
) [inline, static]

Allocate array with n elements such that for all $0\leq i<n: x_i=\text{start}+i\cdot\text{inc}$.

Definition at line 71 of file array.hpp.


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