84 "The given type is not a valid super type for this Type");
const std::string & name() const
Returns the name of this object.
PRMType & superType()
Returns the super type of this type.
void setSuper(PRMType &t)
Changes the PRMType of this PRMType super.
PRMType * __superType
The super type of this, if any.
DiscreteVariable & variable()
Return a reference on the DiscreteVariable contained in this.
const std::string & name() const
Returns the name of this object.
bool isSuperTypeOf(const PRMType &t) const
Returns true if this is a super type of t.
Base class for discrete random variable.
bool operator!=(const PRMObject &from) const
Difference operator.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
DiscreteVariable * __var
The discrete variable.
bool operator==(const PRMObject &from) const
Equality operator.
DiscreteVariable * operator->()
Dereference the DiscreteVariable contained in this.
prm_type
Enumeration of the different types of objects handled by a PRM.
virtual prm_type obj_type() const
Implementation of the pure virtual method of PRMObject.
std::vector< Idx > * __label_map
A vector in which the i-th element is the Idx of the super type's label for the i-th label of this...
This is a decoration of the DiscreteVariable class.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Abstract base class for any element defined in a PRM.
const std::vector< Idx > & label_map() const
Returns the vector in which the i-th element is the Idx of the super type's label for the i-th label ...
DiscreteVariable & operator*()
Indirection on the DiscreteVariable contained in this.
bool isSubType() const
Returns true if this type is a sub-type.
bool isSubTypeOf(const PRMType &super) const
Returns true if this is a subtype of super.
#define GUM_ERROR(type, msg)