Generated on for Gecode by doxygen 1.17.0

Open list of Boolean variables. More...

#include <gecode/int.hh>

Public Member Functions

 OpenBoolVarList (void)
 Construct an uninitialized list.
 OpenBoolVarList (const OpenVarList< BoolVar > &x)
 Share a Boolean list constructed through a variable factory.
 OpenBoolVarList (Space &home, int max=Int::Limits::max)
 Construct a list with maximal length max and domains 0..1.
 OpenBoolVarList (Space &home, Transition t, int max=Int::Limits::max)
 Construct a list with domains 0..1 and transition function t.
Public Member Functions inherited from Gecode::OpenVarList< BoolVar >
void update (Space &home, OpenVarList< BoolVar > &s)
 Update during cloning.
int known_length (void) const
 Return the number of constructed positions (their values may be unassigned).
BoolVar 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, BoolVar x)
 Append variable x.
void materialize (Space &home, int n)
 Materialize the first n variables.
BoolVar 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

Public Types inherited from Gecode::OpenVarList< BoolVar >
typedef std::function< BoolVar(Space &home, int i)> Factory
 Function creating the variable at position i in home.
typedef std::function< void(Space &home, OpenVarList< BoolVar > x, int i)> Transition
 Function called after materializing position i.
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 Boolean variables.

Definition at line 1118 of file int.hh.

Constructor & Destructor Documentation

◆ OpenBoolVarList() [1/4]

Gecode::OpenBoolVarList::OpenBoolVarList ( void )

Construct an uninitialized list.

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

◆ OpenBoolVarList() [2/4]

Gecode::OpenBoolVarList::OpenBoolVarList ( const OpenVarList< BoolVar > & x)
inline

Share a Boolean list constructed through a variable factory.

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

◆ OpenBoolVarList() [3/4]

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

Construct a list with maximal length max and domains 0..1.

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

◆ OpenBoolVarList() [4/4]

Gecode::OpenBoolVarList::OpenBoolVarList ( Space & home,
Transition t,
int max = Int::Limits::max )

Construct a list with domains 0..1 and transition function t.

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


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