55 template <
typename GUM_SCALAR >
60 template <
typename GUM_SCALAR >
66 template <
typename GUM_SCALAR >
71 template <
typename GUM_SCALAR >
76 template <
typename GUM_SCALAR >
81 template <
typename GUM_SCALAR >
86 template <
typename GUM_SCALAR >
91 template <
typename GUM_SCALAR >
93 if (
type().isSubTypeOf(t)) {
Headers of gum::PRMClassElement.
Exception : operation not allowed.
virtual std::string cast(const PRMType &t) const
Returns the name of the cast descendant with PRMType t of this PRMClassElement.
virtual PRMObject::prm_type obj_type() const
NodeId _id_
The node's id of this element.
PRMClassElement(const std::string &name)
Default constructor of a PRMClassElement.
virtual void setId(NodeId id)
Used to assign the id of this element.
NodeId id() const
Returns the NodeId of this element in it's class DAG.
virtual PRMType & type()=0
Return a reference over the gum::PRMType of this class element.
const std::string & safeName() const
Returns the safe name of this PRMClassElement, if any.
virtual ~PRMClassElement()
Destructor of this class.
std::string safeName_
The safe name of this PRMClassElement.
const std::string & name() const
Returns the name of this object.
prm_type
Enumeration of the different types of objects handled by a PRM.
PRMObject(const std::string &name)
Constructor.
static std::string LEFT_CAST()
Enumeration of the different types of objects handled by a PRM.
static std::string RIGHT_CAST()
Enumeration of the different types of objects handled by a PRM.
This is a decoration of the DiscreteVariable class.
const std::string & name() const
Returns the name of this object.
#define GUM_ERROR(type, msg)
Size NodeId
Type for node ids.
namespace for all probabilistic relational models entities
gum is the global namespace for all aGrUM entities