PPL
1.2
|
The relation between a polyhedron and a constraint. More...
#include <Poly_Con_Relation_defs.hh>
Public Member Functions | |
flags_t | get_flags () const |
Access the internal flags: this is needed for some language interfaces. 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 | implies (const Poly_Con_Relation &y) const |
True if and only if *this implies y . More... | |
bool | OK () const |
Checks if all the invariants are satisfied. More... | |
Static Public Member Functions | |
static Poly_Con_Relation | nothing () |
The assertion that says nothing. More... | |
static Poly_Con_Relation | is_disjoint () |
The polyhedron and the set of points satisfying the constraint are disjoint. More... | |
static Poly_Con_Relation | strictly_intersects () |
The polyhedron intersects the set of points satisfying the constraint, but it is not included in it. More... | |
static Poly_Con_Relation | is_included () |
The polyhedron is included in the set of points satisfying the constraint. More... | |
static Poly_Con_Relation | saturates () |
The polyhedron is included in the set of points saturating the constraint. More... | |
Private Types | |
typedef unsigned int | flags_t |
Poly_Con_Relation is implemented by means of a finite bitset. More... | |
Private Member Functions | |
Poly_Con_Relation (flags_t mask) | |
Construct from a bit-mask. More... | |
Static Private Member Functions | |
static bool | implies (flags_t x, flags_t y) |
True if and only if the conjunction x implies the conjunction y . More... | |
Private Attributes | |
flags_t | flags |
This holds the current bitset. More... | |
Static Private Attributes | |
static const flags_t | EVERYTHING |
All assertions together. More... | |
Bit-masks for the individual assertions | |
static const flags_t | NOTHING = 0U |
static const flags_t | IS_DISJOINT = 1U << 0 |
static const flags_t | STRICTLY_INTERSECTS = 1U << 1 |
static const flags_t | IS_INCLUDED = 1U << 2 |
static const flags_t | SATURATES = 1U << 3 |
Friends | |
bool | operator== (const Poly_Con_Relation &x, const Poly_Con_Relation &y) |
bool | operator!= (const Poly_Con_Relation &x, const Poly_Con_Relation &y) |
Poly_Con_Relation | operator&& (const Poly_Con_Relation &x, const Poly_Con_Relation &y) |
Poly_Con_Relation | operator- (const Poly_Con_Relation &x, const Poly_Con_Relation &y) |
std::ostream & | Parma_Polyhedra_Library::IO_Operators::operator<< (std::ostream &s, const Poly_Con_Relation &r) |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &s, const Poly_Con_Relation &r) |
bool | operator== (const Poly_Con_Relation &x, const Poly_Con_Relation &y) |
True if and only if x and y are logically equivalent. More... | |
bool | operator!= (const Poly_Con_Relation &x, const Poly_Con_Relation &y) |
True if and only if x and y are not logically equivalent. More... | |
Poly_Con_Relation | operator&& (const Poly_Con_Relation &x, const Poly_Con_Relation &y) |
Yields the logical conjunction of x and y . More... | |
Poly_Con_Relation | operator- (const Poly_Con_Relation &x, const Poly_Con_Relation &y) |
Yields the assertion with all the conjuncts of x that are not in y . More... | |
std::ostream & | operator<< (std::ostream &s, const Poly_Con_Relation &r) |
Output operator. More... | |
bool | operator== (const Poly_Con_Relation &x, const Poly_Con_Relation &y) |
bool | operator!= (const Poly_Con_Relation &x, const Poly_Con_Relation &y) |
Poly_Con_Relation | operator&& (const Poly_Con_Relation &x, const Poly_Con_Relation &y) |
Poly_Con_Relation | operator- (const Poly_Con_Relation &x, const Poly_Con_Relation &y) |
The relation between a polyhedron and a constraint.
This class implements conjunctions of assertions on the relation between a polyhedron and a constraint.
Definition at line 73 of file Poly_Con_Relation_defs.hh.
|
private |
Poly_Con_Relation is implemented by means of a finite bitset.
Definition at line 76 of file Poly_Con_Relation_defs.hh.
|
inlineprivate |
Construct from a bit-mask.
Definition at line 30 of file Poly_Con_Relation_inlines.hh.
Referenced by is_disjoint(), is_included(), nothing(), saturates(), and strictly_intersects().
void Parma_Polyhedra_Library::Poly_Con_Relation::ascii_dump | ( | ) | const |
Writes to std::cerr
an ASCII representation of *this
.
void Parma_Polyhedra_Library::Poly_Con_Relation::ascii_dump | ( | std::ostream & | s | ) | const |
Writes to s
an ASCII representation of *this
.
Definition at line 33 of file Poly_Con_Relation.cc.
References flags, implies(), IS_DISJOINT, IS_INCLUDED, NOTHING, SATURATES, and STRICTLY_INTERSECTS.
|
inline |
Access the internal flags: this is needed for some language interfaces.
Definition at line 35 of file Poly_Con_Relation_inlines.hh.
References flags.
|
inlinestaticprivate |
True if and only if the conjunction x
implies the conjunction y
.
Definition at line 65 of file Poly_Con_Relation_inlines.hh.
Referenced by ascii_dump(), Parma_Polyhedra_Library::Polyhedron::BFT00_poly_hull_assign_if_exact(), Parma_Polyhedra_Library::Polyhedron::BHZ09_C_poly_hull_assign_if_exact(), Parma_Polyhedra_Library::Polyhedron::BHZ09_NNC_poly_hull_assign_if_exact(), Parma_Polyhedra_Library::Grid::difference_assign(), Parma_Polyhedra_Library::Octagonal_Shape< T >::difference_assign(), Parma_Polyhedra_Library::BD_Shape< T >::difference_assign(), implies(), Parma_Polyhedra_Library::Polyhedron::poly_difference_assign(), Parma_Polyhedra_Library::Generator_System::relation_with(), Parma_Polyhedra_Library::Polyhedron::relation_with(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::relation_with(), Parma_Polyhedra_Library::Pointset_Powerset< PSET >::relation_with_aux(), and Parma_Polyhedra_Library::Grid::simplify_using_context_assign().
|
inline |
True if and only if *this
implies y
.
Definition at line 70 of file Poly_Con_Relation_inlines.hh.
References flags, and implies().
|
inlinestatic |
The polyhedron and the set of points satisfying the constraint are disjoint.
Definition at line 45 of file Poly_Con_Relation_inlines.hh.
References IS_DISJOINT, and Poly_Con_Relation().
Referenced by Parma_Polyhedra_Library::Polyhedron::BHZ09_NNC_poly_hull_assign_if_exact(), Parma_Polyhedra_Library::interval_relation(), Parma_Polyhedra_Library::Box< ITV >::relation_with(), Parma_Polyhedra_Library::Polyhedron::relation_with(), Parma_Polyhedra_Library::Generator_System::relation_with(), Parma_Polyhedra_Library::Grid::relation_with(), Parma_Polyhedra_Library::Octagonal_Shape< T >::relation_with(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::relation_with(), Parma_Polyhedra_Library::BD_Shape< T >::relation_with(), and Parma_Polyhedra_Library::Pointset_Powerset< PSET >::relation_with_aux().
|
inlinestatic |
The polyhedron is included in the set of points satisfying the constraint.
Definition at line 55 of file Poly_Con_Relation_inlines.hh.
References IS_INCLUDED, and Poly_Con_Relation().
Referenced by Parma_Polyhedra_Library::Polyhedron::BFT00_poly_hull_assign_if_exact(), Parma_Polyhedra_Library::Polyhedron::BHZ09_C_poly_hull_assign_if_exact(), Parma_Polyhedra_Library::Polyhedron::BHZ09_NNC_poly_hull_assign_if_exact(), Parma_Polyhedra_Library::Grid::difference_assign(), Parma_Polyhedra_Library::Octagonal_Shape< T >::difference_assign(), Parma_Polyhedra_Library::BD_Shape< T >::difference_assign(), Parma_Polyhedra_Library::Box< ITV >::get_limiting_box(), Parma_Polyhedra_Library::interval_relation(), Parma_Polyhedra_Library::Grid::limited_congruence_extrapolation_assign(), Parma_Polyhedra_Library::Grid::limited_extrapolation_assign(), Parma_Polyhedra_Library::Grid::limited_generator_extrapolation_assign(), Parma_Polyhedra_Library::Polyhedron::poly_difference_assign(), Parma_Polyhedra_Library::Box< ITV >::relation_with(), Parma_Polyhedra_Library::Polyhedron::relation_with(), Parma_Polyhedra_Library::Generator_System::relation_with(), Parma_Polyhedra_Library::Grid::relation_with(), Parma_Polyhedra_Library::Octagonal_Shape< T >::relation_with(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::relation_with(), Parma_Polyhedra_Library::BD_Shape< T >::relation_with(), Parma_Polyhedra_Library::Pointset_Powerset< PSET >::relation_with_aux(), Parma_Polyhedra_Library::shrink_to_congruence_no_check(), and Parma_Polyhedra_Library::Grid::simplify_using_context_assign().
|
inlinestatic |
The assertion that says nothing.
Definition at line 40 of file Poly_Con_Relation_inlines.hh.
References NOTHING, and Poly_Con_Relation().
Referenced by Parma_Polyhedra_Library::interval_relation(), Parma_Polyhedra_Library::Box< ITV >::relation_with(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::relation_with(), and Parma_Polyhedra_Library::Pointset_Powerset< PSET >::relation_with_aux().
bool Parma_Polyhedra_Library::Poly_Con_Relation::OK | ( | ) | const |
Checks if all the invariants are satisfied.
Definition at line 76 of file Poly_Con_Relation.cc.
void Parma_Polyhedra_Library::Poly_Con_Relation::print | ( | ) | const |
Prints *this
to std::cerr
using operator<<
.
|
inlinestatic |
The polyhedron is included in the set of points saturating the constraint.
Definition at line 60 of file Poly_Con_Relation_inlines.hh.
References Poly_Con_Relation(), and SATURATES.
Referenced by Parma_Polyhedra_Library::interval_relation(), Parma_Polyhedra_Library::Box< ITV >::relation_with(), Parma_Polyhedra_Library::Polyhedron::relation_with(), Parma_Polyhedra_Library::Generator_System::relation_with(), Parma_Polyhedra_Library::Grid::relation_with(), Parma_Polyhedra_Library::Octagonal_Shape< T >::relation_with(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::relation_with(), Parma_Polyhedra_Library::BD_Shape< T >::relation_with(), and Parma_Polyhedra_Library::Pointset_Powerset< PSET >::relation_with_aux().
|
inlinestatic |
The polyhedron intersects the set of points satisfying the constraint, but it is not included in it.
Definition at line 50 of file Poly_Con_Relation_inlines.hh.
References Poly_Con_Relation(), and STRICTLY_INTERSECTS.
Referenced by Parma_Polyhedra_Library::Polyhedron::BHRZ03_combining_constraints(), Parma_Polyhedra_Library::interval_relation(), Parma_Polyhedra_Library::Box< ITV >::relation_with(), Parma_Polyhedra_Library::Generator_System::relation_with(), Parma_Polyhedra_Library::Polyhedron::relation_with(), Parma_Polyhedra_Library::Grid::relation_with(), Parma_Polyhedra_Library::Octagonal_Shape< T >::relation_with(), Parma_Polyhedra_Library::BD_Shape< T >::relation_with(), and Parma_Polyhedra_Library::Pointset_Powerset< PSET >::relation_with_aux().
|
related |
True if and only if x
and y
are not logically equivalent.
|
related |
Definition at line 82 of file Poly_Con_Relation_inlines.hh.
References flags.
|
friend |
|
related |
Yields the logical conjunction of x
and y
.
|
related |
Definition at line 88 of file Poly_Con_Relation_inlines.hh.
References flags.
|
friend |
|
related |
Yields the assertion with all the conjuncts of x
that are not in y
.
|
related |
Definition at line 94 of file Poly_Con_Relation_inlines.hh.
References flags.
|
friend |
|
related |
Output operator.
|
related |
Definition at line 70 of file Poly_Con_Relation.cc.
|
related |
True if and only if x
and y
are logically equivalent.
|
related |
Definition at line 76 of file Poly_Con_Relation_inlines.hh.
References flags.
|
friend |
|
friend |
|
staticprivate |
All assertions together.
Definition at line 89 of file Poly_Con_Relation_defs.hh.
|
private |
This holds the current bitset.
Definition at line 95 of file Poly_Con_Relation_defs.hh.
Referenced by ascii_dump(), get_flags(), implies(), operator!=(), operator&&(), operator-(), and operator==().
|
staticprivate |
Definition at line 81 of file Poly_Con_Relation_defs.hh.
Referenced by ascii_dump(), and is_disjoint().
|
staticprivate |
Definition at line 83 of file Poly_Con_Relation_defs.hh.
Referenced by ascii_dump(), and is_included().
|
staticprivate |
Definition at line 80 of file Poly_Con_Relation_defs.hh.
Referenced by ascii_dump(), and nothing().
|
staticprivate |
Definition at line 84 of file Poly_Con_Relation_defs.hh.
Referenced by ascii_dump(), and saturates().
|
staticprivate |
Definition at line 82 of file Poly_Con_Relation_defs.hh.
Referenced by ascii_dump(), and strictly_intersects().