Generated on Sun Feb 17 15:25:18 2019 for Gecode by doxygen 1.6.3

Gecode::Int::NegBoolView Class Reference
[Integer views]

Negated Boolean view. More...

#include <view.hpp>

List of all members.

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.

Domain status access



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

Constructors and initialization



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

Boolean domain tests



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

Boolean assignment operations



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

Value access



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

Delta information for advisors



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

View comparison



bool operator== (const NegBoolView &x, const NegBoolView &y)
 Test whether views x and y are the same.
bool operator!= (const NegBoolView &x, const NegBoolView &y)
 Test whether views x and y are not the same.

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 1574 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  )  [inline, explicit]

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 130 of file neg-bool.hpp.

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

Return maximum value just pruned.

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

unsigned int Gecode::Int::NegBoolView::width ( const Delta d  )  const [inline]

Return width of values just pruned.

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

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

Test whether arbitrary values got pruned.

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

bool Gecode::Int::NegBoolView::zero ( const Delta d  )  [inline, static]

Test whether a view has been assigned to zero.

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

bool Gecode::Int::NegBoolView::one ( const Delta d  )  [inline, static]

Test whether a view has been assigned to one.

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


Friends And Related Function Documentation

bool operator== ( const NegBoolView x,
const NegBoolView y 
) [related]

Test whether views x and y are the same.

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

bool operator!= ( const NegBoolView x,
const NegBoolView y 
) [related]

Test whether views x and y are not the same.

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

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 147 of file print.hpp.


Member Data Documentation

How many bits does the status have.

Definition at line 1589 of file view.hpp.

Status of domain assigned to zero.

Definition at line 1591 of file view.hpp.

Status of domain assigned to one.

Definition at line 1593 of file view.hpp.

Status of domain not yet assigned.

Definition at line 1595 of file view.hpp.


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