46 #ifndef GEN_OBJECT_HPP 47 #define GEN_OBJECT_HPP 49 #include "config_HAVE_UNORDERED.hpp" 171 out_sign = out_sign_;
189 return out_sign.
lock();
221 : std::binary_function<std::pair<generic_objRef, unsigned int>, std::pair<generic_objRef, unsigned int>, bool>
235 bool operator()(
const std::pair<generic_objRef, int>&
x,
const std::pair<generic_objRef, int>& y)
const;
a multi unbounded controller
an element used for connecting the resources (e.g., muxes)
unsigned int get_type() const
Return generic_obj type.
specify the type of a connection object: UINT
a data port (in/out data)
Wrefcount< structural_object > out_sign
output signal associated to element.
const structural_objectRef get_out_sign() const
Gets structural_object of output signal associated to this object.
a converter from signed to signed int
std::string name
connection obj id
REF_FORWARD_DECL(structural_object)
void set_structural_obj(const structural_objectRef &SM_)
Sets structural_object associated to this object.
a converter from unsigned to unsigned int
const resource_type type
type of resource
const structural_objectRef get_structural_obj() const
Gets structural_object associated to this object.
const std::string get_string() const
Returns the name associated with the element.
generic_obj(const resource_type t, const std::string &_name)
This is the constructor of the object class.
void print(std::ostream &os) const
Prints elements into given stream.
a converter from real to real int
resource_type
Admissible resource types.
Generic class managing all resources into datapath.
virtual ~generic_obj()=default
Destructor.
Template definition of refcount.
void set_out_sign(const structural_objectRef &out_sign_)
Sets structural_object of output signal associated to this object.
bool operator<(const generic_obj &other) const
refcount< T > lock() const
Wrefcount< structural_object > SM
structural_object associated to element
friend std::ostream & operator<<(std::ostream &os, const generic_obj &s)
Friend definition of the << operator.
a converter from signed to unsigned int
an adder object representation used to compute some addresses
x
Return the smallest n such that 2^n >= _x.
a command port (mainly connections from/to controller)
specify the type of a connection object: INT
Base object for all the structural objects.
a converter from unsigned to signed int