Generated on Sat Feb 7 2015 02:01:44 for Gecode by doxygen 1.8.9.1

Negated Boolean view. More...

#include <view.hpp>

Related Functions

(Note that these are not member functions.)

template<class Char , class Traits >
std::basic_ostream< Char, Traits > & operator<< (std::basic_ostream< Char, Traits > &os, const NegBoolView &x)
 Print negated Boolean view. More...
 

Constructors and initialization

 NegBoolView (void)
 Default constructor. More...
 
 NegBoolView (const BoolView &y)
 Initialize with Boolean view y. More...
 

Domain status access

static const int BITS = BoolView::BITS
 How many bits does the status have. More...
 
static const BoolStatus ZERO = BoolView::ONE
 Status of domain assigned to zero. More...
 
static const BoolStatus ONE = BoolView::ZERO
 Status of domain assigned to one. More...
 
static const BoolStatus NONE = BoolView::NONE
 Status of domain not yet assigned. More...
 
BoolStatus status (void) const
 Return current domain status. More...
 

Boolean domain tests

bool zero (void) const
 Test whether view is assigned to be zero. More...
 
bool one (void) const
 Test whether view is assigned to be one. More...
 
bool none (void) const
 Test whether view is not yet assigned. More...
 

Boolean assignment operations

ModEvent one (Space &home)
 Try to assign view to one. More...
 
ModEvent zero (Space &home)
 Try to assign view to zero. More...
 
ModEvent one_none (Space &home)
 Assign not yet assigned view to one. More...
 
ModEvent zero_none (Space &home)
 Assign not yet assigned view to zero. More...
 

Value access

int min (void) const
 Return minimum of domain. More...
 
int max (void) const
 Return maximum of domain. More...
 
int val (void) const
 Return assigned value (only if assigned) More...
 

Delta information for advisors

int min (const Delta &d) const
 Return minimum value just pruned. More...
 
int max (const Delta &d) const
 Return maximum value just pruned. More...
 
bool any (const Delta &d) const
 Test whether arbitrary values got pruned. More...
 
static bool zero (const Delta &d)
 Test whether a view has been assigned to zero. More...
 
static bool one (const Delta &d)
 Test whether a view has been assigned to one. More...
 

Additional Inherited Members

- Public Types inherited from Gecode::DerivedView< BoolView >
typedef BoolView::VarImpType VarImpType
 The variable implementation type belonging to the View. More...
 
typedef BoolView::VarType VarType
 The variable type belonging to the View. More...
 
- Public Member Functions inherited from Gecode::DerivedView< BoolView >
VarImpTypevarimp (void) const
 Return variable implementation of view. More...
 
BoolView base (void) const
 Return view from which this view is derived. More...
 
unsigned int degree (void) const
 Return degree (number of subscribed propagators) More...
 
double afc (const Space &home) const
 Return accumulated failure count. More...
 
bool assigned (void) const
 Test whether view is assigned. More...
 
void subscribe (Space &home, Propagator &p, PropCond pc, bool schedule=true)
 Subscribe propagator p with propagation condition pc to view. More...
 
void subscribe (Space &home, Advisor &a)
 Subscribe advisor a to view. More...
 
void cancel (Space &home, Propagator &p, PropCond pc)
 Cancel subscription of propagator p with propagation condition pc to view. More...
 
void cancel (Space &home, Advisor &a)
 Cancel subscription of advisor a. More...
 
void update (Space &home, bool share, DerivedView< BoolView > &y)
 Update this view to be a clone of view y. More...
 
- Static Public Member Functions inherited from Gecode::DerivedView< BoolView >
static bool varderived (void)
 Return whether this view is derived from a VarImpView. More...
 
static void schedule (Space &home, Propagator &p, ModEvent me)
 Schedule propagator p with modification event me. More...
 
static ModEvent me (const ModEventDelta &med)
 Return modification event for view type in med. More...
 
static ModEventDelta med (ModEvent)
 Translate modification event me to modification event delta for view. More...
 
static ModEvent modevent (const Delta &d)
 Return modification event. More...
 
- Protected Member Functions inherited from Gecode::DerivedView< BoolView >
 DerivedView (void)
 Default constructor. More...
 
 DerivedView (const BoolView &y)
 Initialize with view y. More...
 
- Protected Attributes inherited from Gecode::DerivedView< BoolView >
BoolView x
 View from which this view is derived. More...
 

Detailed Description

Negated Boolean view.

A negated Boolean view $n$ for a Boolean view $b$ provides operations such that $n$ behaves as $\neg b$.

Definition at line 1503 of file view.hpp.

Constructor & Destructor Documentation

Gecode::Int::NegBoolView::NegBoolView ( void  )
inline

Default constructor.

Definition at line 50 of file neg-bool.hpp.

Gecode::Int::NegBoolView::NegBoolView ( const BoolView y)
inlineexplicit

Initialize with Boolean view y.

Definition at line 52 of file neg-bool.hpp.

Member Function Documentation

BoolStatus Gecode::Int::NegBoolView::status ( void  ) const
inline

Return current domain status.

Definition at line 61 of file neg-bool.hpp.

bool Gecode::Int::NegBoolView::zero ( void  ) const
inline

Test whether view is assigned to be zero.

Definition at line 65 of file neg-bool.hpp.

bool Gecode::Int::NegBoolView::one ( void  ) const
inline

Test whether view is assigned to be one.

Definition at line 69 of file neg-bool.hpp.

bool Gecode::Int::NegBoolView::none ( void  ) const
inline

Test whether view is not yet assigned.

Definition at line 73 of file neg-bool.hpp.

ModEvent Gecode::Int::NegBoolView::one ( Space home)
inline

Try to assign view to one.

Definition at line 96 of file neg-bool.hpp.

ModEvent Gecode::Int::NegBoolView::zero ( Space home)
inline

Try to assign view to zero.

Definition at line 92 of file neg-bool.hpp.

ModEvent Gecode::Int::NegBoolView::one_none ( Space home)
inline

Assign not yet assigned view to one.

Definition at line 87 of file neg-bool.hpp.

ModEvent Gecode::Int::NegBoolView::zero_none ( Space home)
inline

Assign not yet assigned view to zero.

Definition at line 83 of file neg-bool.hpp.

int Gecode::Int::NegBoolView::min ( void  ) const
inline

Return minimum of domain.

Definition at line 106 of file neg-bool.hpp.

int Gecode::Int::NegBoolView::max ( void  ) const
inline

Return maximum of domain.

Definition at line 110 of file neg-bool.hpp.

int Gecode::Int::NegBoolView::val ( void  ) const
inline

Return assigned value (only if assigned)

Definition at line 114 of file neg-bool.hpp.

int Gecode::Int::NegBoolView::min ( const Delta d) const
inline

Return minimum value just pruned.

Definition at line 124 of file neg-bool.hpp.

int Gecode::Int::NegBoolView::max ( const Delta d) const
inline

Return maximum value just pruned.

Definition at line 128 of file neg-bool.hpp.

bool Gecode::Int::NegBoolView::any ( const Delta d) const
inline

Test whether arbitrary values got pruned.

Definition at line 132 of file neg-bool.hpp.

bool Gecode::Int::NegBoolView::zero ( const Delta d)
inlinestatic

Test whether a view has been assigned to zero.

Definition at line 136 of file neg-bool.hpp.

bool Gecode::Int::NegBoolView::one ( const Delta d)
inlinestatic

Test whether a view has been assigned to one.

Definition at line 140 of file neg-bool.hpp.

Friends And Related Function Documentation

template<class Char , class Traits >
std::basic_ostream< Char, Traits > & operator<< ( std::basic_ostream< Char, Traits > &  os,
const NegBoolView x 
)
related

Print negated Boolean view.

Definition at line 151 of file print.hpp.

Member Data Documentation

const int Gecode::Int::NegBoolView::BITS = BoolView::BITS
static

How many bits does the status have.

Definition at line 1518 of file view.hpp.

const BoolStatus Gecode::Int::NegBoolView::ZERO = BoolView::ONE
static

Status of domain assigned to zero.

Definition at line 1520 of file view.hpp.

const BoolStatus Gecode::Int::NegBoolView::ONE = BoolView::ZERO
static

Status of domain assigned to one.

Definition at line 1522 of file view.hpp.

const BoolStatus Gecode::Int::NegBoolView::NONE = BoolView::NONE
static

Status of domain not yet assigned.

Definition at line 1524 of file view.hpp.


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