Generated on Fri Aug 24 2012 04:52:26 for Gecode by doxygen 1.8.1.1
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}$.

Additional Inherited Members

- Public Member Functions inherited from Gecode::PrimArgArray< int >
 PrimArgArray (void)
 Allocate empty array.
 PrimArgArray (int n)
 Allocate array with n elements.
 PrimArgArray (int n, inte0,...)
 Allocate array with n elements and initialize with e0, ...
 PrimArgArray (int n, const int *e)
 Allocate array with n elements and initialize with elements from array e.
 PrimArgArray (const PrimArgArray< int > &a)
 Initialize from primitive argument array a (copy elements)
ArrayTraits< PrimArgArray< int >
>::ArgsType 
slice (int start, int inc=1, int n=-1)
ArrayTraits< PrimArgArray< int >
>::ArgsType & 
operator<< (const int &x)
 Insert a new element x at the end of the array (increase size by 1)
ArrayTraits< PrimArgArray< int >
>::ArgsType & 
operator<< (const PrimArgArray< int > &x)
 Append x to the end of the array.

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

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

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: