Generated on for Gecode by doxygen 1.17.0

Open list of integer variables. More...

#include <gecode/int.hh>

Public Types

typedef std::function< IntSet(int i)> Domain
 Function returning the domain for position i.
Public Types inherited from Gecode::OpenVarList< IntVar >
typedef std::function< IntVar(Space &home, int i)> Factory
 Function creating the variable at position i in home.
typedef std::function< void(Space &home, OpenVarList< IntVar > x, int i)> Transition
 Function called after materializing position i.

Public Member Functions

 OpenIntVarList (void)
 Construct an uninitialized list.
 OpenIntVarList (const OpenVarList< IntVar > &x)
 Share an integer list constructed through a variable factory.
 OpenIntVarList (Space &home, int max=Int::Limits::max)
 Construct a list with maximal length max and full domains.
 OpenIntVarList (Space &home, const IntSet &d, int max=Int::Limits::max)
 Construct a list using domain d for every position.
 OpenIntVarList (Space &home, const IntSet &d, Transition t, int max=Int::Limits::max)
 Construct a list using domain d and transition function t.
 OpenIntVarList (Space &home, Domain d, int max=Int::Limits::max)
 Construct a list using d to create each position.
 OpenIntVarList (Space &home, Domain d, Transition t, int max=Int::Limits::max)
 Construct a list using d and transition function t.
Public Member Functions inherited from Gecode::OpenVarList< IntVar >
void update (Space &home, OpenVarList< IntVar > &s)
 Update during cloning.
int known_length (void) const
 Return the number of constructed positions (their values may be unassigned).
IntVar operator[] (int i) const
 Return variable at position i, where 0 <= i < known_length().
IntVar length (void) const
 Return the eventual-length variable.
void append (Space &home, IntVar x)
 Append variable x.
void materialize (Space &home, int n)
 Materialize the first n variables.
IntVar get (Space &home, int i)
 Require and return the variable at position i.
void close (Space &home)
 Close the list at its materialized length.
void subscribe (Space &home, Propagator &p)
 Subscribe p to the addition of positions.
void cancel (Space &home, Propagator &p)
 Cancel the subscription of p to the addition of positions.
void reschedule (Space &home, Propagator &p)
 Reschedule p for the addition of positions.
Public Member Functions inherited from Gecode::LocalHandle
LocalHandle & operator= (const LocalHandle &lh)
 Assignment operator.
void update (Space &home, LocalHandle &lh)
 Updating during cloning.
 ~LocalHandle (void)
 Destructor.

Additional Inherited Members

Protected Member Functions inherited from Gecode::LocalHandle
 LocalHandle (void)
 Create local handle pointing to nullptr object.
 LocalHandle (LocalObject *lo)
 Create local handle that points to local object lo.
 LocalHandle (const LocalHandle &lh)
 Copy constructor.
LocalObject * object (void) const
 Access to the local object.
void object (LocalObject *n)
 Modify local object.

Detailed Description

Open list of integer variables.

Definition at line 1076 of file int.hh.

Member Typedef Documentation

◆ Domain

typedef std::function<IntSet(int i)> Gecode::OpenIntVarList::Domain

Function returning the domain for position i.

Must be deterministic and safe for concurrent calls. Sharing and captured data follow the Factory contract.

Definition at line 1084 of file int.hh.

Constructor & Destructor Documentation

◆ OpenIntVarList() [1/7]

Gecode::OpenIntVarList::OpenIntVarList ( void )

Construct an uninitialized list.

Definition at line 38 of file open-var-list.cpp.

◆ OpenIntVarList() [2/7]

Gecode::OpenIntVarList::OpenIntVarList ( const OpenVarList< IntVar > & x)
inline

Share an integer list constructed through a variable factory.

Definition at line 308 of file open-var-list.hpp.

◆ OpenIntVarList() [3/7]

Gecode::OpenIntVarList::OpenIntVarList ( Space & home,
int max = Int::Limits::max )

Construct a list with maximal length max and full domains.

Definition at line 47 of file open-var-list.cpp.

◆ OpenIntVarList() [4/7]

Gecode::OpenIntVarList::OpenIntVarList ( Space & home,
const IntSet & d,
int max = Int::Limits::max )

Construct a list using domain d for every position.

Definition at line 51 of file open-var-list.cpp.

◆ OpenIntVarList() [5/7]

Gecode::OpenIntVarList::OpenIntVarList ( Space & home,
const IntSet & d,
Transition t,
int max = Int::Limits::max )

Construct a list using domain d and transition function t.

Definition at line 55 of file open-var-list.cpp.

◆ OpenIntVarList() [6/7]

Gecode::OpenIntVarList::OpenIntVarList ( Space & home,
Domain d,
int max = Int::Limits::max )

Construct a list using d to create each position.

Definition at line 59 of file open-var-list.cpp.

◆ OpenIntVarList() [7/7]

Gecode::OpenIntVarList::OpenIntVarList ( Space & home,
Domain d,
Transition t,
int max = Int::Limits::max )

Construct a list using d and transition function t.

Definition at line 62 of file open-var-list.cpp.


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