24 #ifndef PPL_Grid_Generator_System_defs_hh
25 #define PPL_Grid_Generator_System_defs_hh 1
38 namespace IO_Operators {
46 std::ostream&
operator<<(std::ostream& s,
const Grid_Generator_System& gs);
52 void swap(Grid_Generator_System& x, Grid_Generator_System& y);
56 bool operator==(
const Grid_Generator_System& x,
57 const Grid_Generator_System& y);
279 :
public std::iterator<std::forward_iterator_tag,
282 const Grid_Generator*,
283 const Grid_Generator&> {
421 Coefficient_traits::const_reference denominator);
515 #endif // !defined(PPL_Grid_Generator_System_defs_hh)
static const Grid_Generator_System * zero_dim_univ_p
Holds (between class initialization and finalization) a pointer to the singleton system containing on...
friend bool operator==(const Grid_Generator_System &x, const Grid_Generator_System &y)
Representation representation() const
Returns the current representation of *this.
bool ascii_load(std::istream &s)
Loads from s an ASCII representation (as produced by ascii_dump(std::ostream&) const) and sets *this ...
void swap(CO_Tree &x, CO_Tree &y)
bool operator==(const const_iterator &y) const
Returns true if and only if *this and y are identical.
The base class for systems of constraints and generators.
size_t dimension_type
An unsigned integral type for representing space dimensions.
bool empty() const
Returns true if and only if *this has no generators.
void permute_space_dimensions(const std::vector< Variable > &cycle)
Permutes the space dimensions of the matrix.
An std::set of variables' indexes.
Linear_System< Grid_Generator > sys
const_iterator end() const
Returns the past-the-end const_iterator.
bool operator!=(const const_iterator &y) const
Returns true if and only if *this and y are different.
bool is_equal_to(const Grid_Generator_System &y) const
Returns true if *this is identical to y.
void clear()
Removes all the generators from the generator system and sets its space dimension to 0...
std::ostream & operator<<(std::ostream &s, const Ask_Tell< D > &x)
bool has_points() const
Returns true if and only if *this contains one or more points.
dimension_type num_lines() const
Returns the number of lines in the system.
const_iterator begin() const
Returns the const_iterator pointing to the first generator, if this is not empty; otherwise...
void add_universe_rows_and_columns(dimension_type dims)
Adds dims rows and dims columns of zeroes to the matrix, initializing the added rows as in the univer...
~const_iterator()
Destructor.
const Grid_Generator & operator*() const
Dereference operator.
void set_representation(Representation r)
Converts *this to the specified representation.
void set_space_dimension(dimension_type space_dim)
Resizes the system to the specified space dimension.
void m_swap(Grid_Generator_System &y)
Swaps *this with y.
static dimension_type max_space_dimension()
Returns the maximum space dimension a Grid_Generator_System can handle.
A dimension of the vector space.
const_iterator & operator=(const const_iterator &y)
Assignment operator.
The base class for convex polyhedra.
memory_size_type external_memory_in_bytes() const
Returns the size in bytes of the memory managed by *this.
const_iterator()
Default constructor.
~Grid_Generator_System()
Destructor.
#define PPL_OUTPUT_DECLARATIONS
static const Representation default_representation
const_iterator & operator++()
Prefix increment operator.
An iterator over a system of grid generators.
dimension_type first_pending_row() const
Returns the index of the first pending row.
bool OK() const
Checks if all the invariants are satisfied.
const Grid_Generator & operator[](dimension_type k) const
Returns a constant reference to the k- th generator of the system.
const Grid_Generator * operator->() const
Indirect member selector.
Swapping_Vector< Row >::const_iterator const_iterator
void set_sorted(bool b)
Sets the sortedness flag of the system to b.
Topology topology() const
Returns the system topology.
void insert_verbatim(const Grid_Generator &g)
void affine_image(Variable v, const Linear_Expression &expr, Coefficient_traits::const_reference denominator)
Assigns to a given variable an affine expression.
void unset_pending_rows()
Sets the index to indicate that the system has no pending rows.
void remove_space_dimensions(const Variables_Set &vars)
Removes all the specified dimensions from the generator system.
void remove_invalid_lines_and_parameters()
Removes all the invalid lines and parameters.
The entire library is confined to this namespace.
static void finalize()
Finalizes the class.
dimension_type num_rows() const
Returns the number of rows (generators) in the system.
static const Grid_Generator_System & zero_dim_univ()
Returns the singleton system containing only Grid_Generator::zero_dim_point().
void shift_space_dimensions(Variable v, dimension_type n)
dimension_type space_dimension() const
Returns the dimension of the vector space enclosing *this.
Sparse representation: only the nonzero coefficient are stored. If there are many nonzero coefficient...
void set_index_first_pending_row(dimension_type i)
Sets the index of the first pending row to i.
bool operator==(const Box< ITV > &x, const Box< ITV > &y)
Grid_Generator_System(Representation r=default_representation)
Default constructor: builds an empty system of generators.
size_t memory_size_type
An unsigned integral type for representing memory size in bytes.
Linear_System< Grid_Generator >::const_iterator i
memory_size_type total_memory_in_bytes() const
Returns the total size in bytes of the memory occupied by *this.
static void initialize()
Initializes the class.
dimension_type num_parameters() const
Returns the number of parameters in the system.
void remove_trailing_rows(dimension_type n)
Makes the system shrink by removing its n trailing rows.
void insert(const Grid_Generator &g)
Inserts into *this a copy of the generator g, increasing the number of space dimensions if needed...
A grid line, parameter or grid point.
Topology
Kinds of polyhedra domains.
Grid_Generator_System & operator=(const Grid_Generator_System &y)
Assignment operator.
A system of grid generators.