54 #define VARIABLE_COLUMN_SIZE 25 59 template <
class data_obj>
84 auto i_end = this->end();
85 for(
auto i = this->begin(); i != i_end; ++i)
93 THROW_ASSERT(this->find(__k) != this->end(),
"Impossible to find variable " + std::to_string(__k));
94 return this->find(__k)->second;
97 template <
class Iterator>
98 void resize(Iterator left, Iterator right,
int val)
100 for(; left != right; left++)
102 this->operator[](*left) = val;
virtual void print_el(typename variable2obj< data_obj >::const_iterator &it) const =0
Function that print the information associated with a variable.
Class specification of the graph structures.
friend std::ostream & operator<<(std::ostream &os, const variable2obj *s)
Friend definition of the << operator.
redefinition of map to manage ordered/unordered structures
virtual ~variable2obj()=default
Destructor.
unsigned map[NUM_VERTICES]
variable2obj()=default
Constructor.
Class managing map of the storage values on a generic object.
void resize(Iterator left, Iterator right, int val)
Template definition of refcount.
virtual void print() const
Function that prints the class variable2obj.
friend std::ostream & operator<<(std::ostream &os, variable2obj &s)
Friend definition of the << operator.
const data_obj operator()(const unsigned int &__k) const
#define THROW_ASSERT(cond, str_expr)
helper function used to check an assert and if needed to throw an error in a standard way ...