24 #ifndef PPL_Variable_inlines_hh
25 #define PPL_Variable_inlines_hh 1
41 : (throw
std::length_error(
"PPL::Variable::Variable(i):\n"
42 "i exceeds the maximum allowed "
43 "variable identifier."), i)) {
79 return v.
id() < w.
id();
100 #endif // !defined(PPL_Variable_inlines_hh)
bool less(const Variable v, const Variable w)
void swap(Variable &x, Variable &y)
dimension_type max_space_dimension()
Returns the maximum space dimension this library can handle.
size_t dimension_type
An unsigned integral type for representing space dimensions.
dimension_type varid
The index of the Cartesian axis.
Variable(dimension_type i)
Builds the variable corresponding to the Cartesian axis of index i.
static output_function_type * get_output_function()
Returns the pointer to the current output function.
dimension_type not_a_dimension()
Returns a value that does not designate a valid dimension.
static dimension_type max_space_dimension()
Returns the maximum space dimension a Variable can handle.
The standard C++ namespace.
void output_function_type(std::ostream &s, const Variable v)
Type of output functions.
dimension_type id() const
Returns the index of the Cartesian axis associated to the variable.
static output_function_type * current_output_function
Pointer to the current output function.
bool less(Variable v, Variable w)
Defines a total ordering on variables.
A dimension of the vector space.
dimension_type space_dimension() const
Returns the dimension of the vector space enclosing *this.
bool operator()(Variable x, Variable y) const
Returns true if and only if x comes before y.
void m_swap(Variable &v)
Swaps *this and v.
memory_size_type total_memory_in_bytes() const
Returns the total size in bytes of the memory occupied by *this.
memory_size_type external_memory_in_bytes() const
Returns the size in bytes of the memory managed by *this.
The entire library is confined to this namespace.
void swap(Variable &x, Variable &y)
size_t memory_size_type
An unsigned integral type for representing memory size in bytes.
static void set_output_function(output_function_type *p)
Sets the output function to be used for printing Variable objects.