PPL
1.2
|
Public Member Functions | |
Status () | |
By default Status is the empty set of assertion. More... | |
Status (const Status &y) | |
Ordinary copy constructor. More... | |
template<typename Other_ITV > | |
Status (const typename Box< Other_ITV >::Status &y) | |
Copy constructor from a box of different type. More... | |
bool | OK () const |
Checks if all the invariants are satisfied. More... | |
void | ascii_dump () const |
Writes to std::cerr an ASCII representation of *this . More... | |
void | ascii_dump (std::ostream &s) const |
Writes to s an ASCII representation of *this . More... | |
void | print () const |
Prints *this to std::cerr using operator<< . More... | |
bool | ascii_load (std::istream &s) |
Loads from s an ASCII representation (as produced by ascii_dump(std::ostream&) const) and sets *this accordingly. Returns true if successful, false otherwise. More... | |
Test, remove or add an individual assertion from the conjunction. | |
bool | test_empty_up_to_date () const |
void | reset_empty_up_to_date () |
void | set_empty_up_to_date () |
bool | test_empty () const |
void | reset_empty () |
void | set_empty () |
bool | test_universe () const |
void | reset_universe () |
void | set_universe () |
Private Types | |
typedef unsigned int | flags_t |
Status is implemented by means of a finite bitset. More... | |
Private Member Functions | |
Status (flags_t mask) | |
Construct from a bit-mask. More... | |
bool | test_all (flags_t mask) const |
Check whether all bits in mask are set. More... | |
bool | test_any (flags_t mask) const |
Check whether at least one bit in mask is set. More... | |
void | set (flags_t mask) |
Set the bits in mask . More... | |
void | reset (flags_t mask) |
Reset the bits in mask . More... | |
Private Attributes | |
flags_t | flags |
This holds the current bitset. More... | |
Static Private Attributes | |
Bit-masks for the individual assertions. | |
static const flags_t | NONE = 0U |
static const flags_t | EMPTY_UP_TO_DATE = 1U << 0 |
static const flags_t | EMPTY = 1U << 1 |
static const flags_t | UNIVERSE = 1U << 2 |
Related Functions | |
(Note that these are not member functions.) | |
bool | get_field (std::istream &s, const char *keyword, bool &positive) |
Definition at line 46 of file Box_defs.hh.
|
private |
Status is implemented by means of a finite bitset.
Definition at line 87 of file Box_defs.hh.
|
inline |
By default Status is the empty set of assertion.
Definition at line 52 of file Box_Status_inlines.hh.
|
inline |
Ordinary copy constructor.
Definition at line 39 of file Box_Status_inlines.hh.
|
inline |
Copy constructor from a box of different type.
Definition at line 46 of file Box_Status_inlines.hh.
|
inlineprivate |
Construct from a bit-mask.
Definition at line 33 of file Box_Status_inlines.hh.
void Parma_Polyhedra_Library::Box< ITV >::Status::ascii_dump | ( | ) | const |
Writes to std::cerr
an ASCII representation of *this
.
void Parma_Polyhedra_Library::Box< ITV >::Status::ascii_dump | ( | std::ostream & | s | ) | const |
Writes to s
an ASCII representation of *this
.
Definition at line 190 of file Box_Status_inlines.hh.
References Parma_Polyhedra_Library::Implementation::BD_Shapes::empty, Parma_Polyhedra_Library::Implementation::Boxes::empty_up_to_date, Parma_Polyhedra_Library::Implementation::Boxes::no, Parma_Polyhedra_Library::Implementation::Boxes::separator, Parma_Polyhedra_Library::Implementation::Boxes::universe, and Parma_Polyhedra_Library::Implementation::Boxes::yes.
bool Parma_Polyhedra_Library::Box< ITV >::Status::ascii_load | ( | std::istream & | s | ) |
Loads from s
an ASCII representation (as produced by ascii_dump(std::ostream&) const) and sets *this
accordingly. Returns true
if successful, false
otherwise.
Definition at line 201 of file Box_Status_inlines.hh.
References Parma_Polyhedra_Library::Implementation::Boxes::empty, Parma_Polyhedra_Library::Implementation::Boxes::empty_up_to_date, Parma_Polyhedra_Library::Box< ITV >::OK(), PPL_UNINITIALIZED, Parma_Polyhedra_Library::Box< ITV >::set_empty(), Parma_Polyhedra_Library::Box< ITV >::set_empty_up_to_date(), and Parma_Polyhedra_Library::Implementation::Boxes::universe.
bool Parma_Polyhedra_Library::Box< ITV >::Status::OK | ( | ) | const |
Checks if all the invariants are satisfied.
Definition at line 136 of file Box_Status_inlines.hh.
void Parma_Polyhedra_Library::Box< ITV >::Status::print | ( | ) | const |
Prints *this
to std::cerr
using operator<<
.
|
inlineprivate |
Reset the bits in mask
.
Definition at line 76 of file Box_Status_inlines.hh.
|
inline |
Definition at line 106 of file Box_Status_inlines.hh.
References Parma_Polyhedra_Library::EMPTY.
|
inline |
Definition at line 88 of file Box_Status_inlines.hh.
|
inline |
Definition at line 124 of file Box_Status_inlines.hh.
References Parma_Polyhedra_Library::UNIVERSE.
|
inlineprivate |
Set the bits in mask
.
Definition at line 70 of file Box_Status_inlines.hh.
|
inline |
Definition at line 112 of file Box_Status_inlines.hh.
References Parma_Polyhedra_Library::EMPTY.
|
inline |
Definition at line 94 of file Box_Status_inlines.hh.
|
inline |
Definition at line 130 of file Box_Status_inlines.hh.
References Parma_Polyhedra_Library::UNIVERSE.
|
inlineprivate |
Check whether all bits in mask
are set.
Definition at line 58 of file Box_Status_inlines.hh.
|
inlineprivate |
Check whether at least one bit in mask
is set.
Definition at line 64 of file Box_Status_inlines.hh.
|
inline |
Definition at line 100 of file Box_Status_inlines.hh.
References Parma_Polyhedra_Library::EMPTY.
|
inline |
Definition at line 82 of file Box_Status_inlines.hh.
Referenced by Parma_Polyhedra_Library::Box< ITV >::concatenate_assign().
|
inline |
Definition at line 118 of file Box_Status_inlines.hh.
References Parma_Polyhedra_Library::UNIVERSE.
|
related |
Reads a keyword and its associated on/off flag from s
. Returns true
if the operation is successful, returns false
otherwise. When successful, positive
is set to true
if the flag is on; it is set to false
otherwise.
Definition at line 173 of file Box_Status_inlines.hh.
References Parma_Polyhedra_Library::Implementation::Boxes::yes.
|
staticprivate |
Definition at line 93 of file Box_defs.hh.
|
staticprivate |
Definition at line 92 of file Box_defs.hh.
|
private |
This holds the current bitset.
Definition at line 98 of file Box_defs.hh.
|
staticprivate |
Definition at line 91 of file Box_defs.hh.
|
staticprivate |
Definition at line 94 of file Box_defs.hh.