Generated on Tue Jan 28 2020 00:00:00 for Gecode by doxygen 1.8.17
Gecode::IntArgs Class Reference

Passing integer arguments. More...

#include <int.hh>

Constructors and initialization

 IntArgs (void)
 Allocate empty array. More...
 
 IntArgs (int n)
 Allocate array with n elements. More...
 
 IntArgs (const SharedArray< int > &x)
 Allocate array and copy elements from x. More...
 
 IntArgs (const std::vector< int > &x)
 Allocate array and copy elements from x. More...
 
template<class InputIterator >
 IntArgs (InputIterator first, InputIterator last)
 Allocate array and copy elements from first to last. More...
 
 IntArgs (int n, int e0,...)
 Allocate array with n elements and initialize with e0, ... More...
 
 IntArgs (int n, const int *e)
 Allocate array with n elements and initialize with elements from array e. More...
 
 IntArgs (const PrimArgArray< int > &a)
 Initialize from primitive argument array a (copy elements) More...
 
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}$. More...
 

Additional Inherited Members

- Public Member Functions inherited from Gecode::PrimArgArray< int >
 PrimArgArray (void)
 Allocate empty array. More...
 
 PrimArgArray (int n)
 Allocate array with n elements. More...
 
 PrimArgArray (int n, int e0,...)
 Allocate array with n elements and initialize with e0, ... More...
 
 PrimArgArray (int n, const int *e)
 Allocate array with n elements and initialize with elements from array e. More...
 
 PrimArgArray (const PrimArgArray< int > &a)
 Initialize from primitive argument array a (copy elements) More...
 
 PrimArgArray (const std::vector< int > &a)
 Initialize from vector a. More...
 
 PrimArgArray (InputIterator first, InputIterator last)
 Initialize from InputIterator first and last. More...
 
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) More...
 
ArrayTraits< PrimArgArray< int > >::ArgsType & operator<< (const PrimArgArray< int > &x)
 Append x to the end of the array. More...
 

Detailed Description

Passing integer arguments.

Definition at line 610 of file int.hh.

Constructor & Destructor Documentation

◆ IntArgs() [1/8]

Gecode::IntArgs::IntArgs ( void  )
inline

Allocate empty array.

Definition at line 46 of file array.hpp.

◆ IntArgs() [2/8]

Gecode::IntArgs::IntArgs ( int  n)
inlineexplicit

Allocate array with n elements.

Definition at line 49 of file array.hpp.

◆ IntArgs() [3/8]

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

Allocate array and copy elements from x.

Definition at line 52 of file array.hpp.

◆ IntArgs() [4/8]

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

Allocate array and copy elements from x.

Definition at line 58 of file array.hpp.

◆ IntArgs() [5/8]

template<class InputIterator >
Gecode::IntArgs::IntArgs ( InputIterator  first,
InputIterator  last 
)
inline

Allocate array and copy elements from first to last.

Definition at line 62 of file array.hpp.

◆ IntArgs() [6/8]

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

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

Definition at line 42 of file array.cpp.

◆ IntArgs() [7/8]

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

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

Definition at line 66 of file array.hpp.

◆ IntArgs() [8/8]

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

Initialize from primitive argument array a (copy elements)

Definition at line 69 of file array.hpp.

Member Function Documentation

◆ create()

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


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