![]() |
aGrUM
0.16.0
|
<agrum/PRM/elements/formAttribute.h> More...
#include <PRMFormAttribute.h>
Public Member Functions | |
PRMFormAttribute (const PRMClass< GUM_SCALAR > &c, const std::string &name, const PRMType &type, MultiDimImplementation< std::string > *impl=new MultiDimArray< std::string >()) | |
virtual | ~PRMFormAttribute () |
virtual PRMAttribute< GUM_SCALAR > * | newFactory (const PRMClass< GUM_SCALAR > &c) const |
See gum::prm::PRMAttribute. More... | |
virtual PRMAttribute< GUM_SCALAR > * | copy (Bijection< const DiscreteVariable *, const DiscreteVariable * > bij) const |
See gum::prm::PRMAttribute. More... | |
virtual void | copyCpf (const Bijection< const DiscreteVariable *, const DiscreteVariable * > &bif, const PRMAttribute< GUM_SCALAR > &source) |
See gum::prm::PRMAttribute. More... | |
virtual PRMClassElement< GUM_SCALAR >::ClassElementType | elt_type () const |
See gum::prm::PRMAttribute. More... | |
virtual PRMType & | type () |
See gum::prm::PRMAttribute. More... | |
virtual const PRMType & | type () const |
See gum::prm::PRMAttribute. More... | |
virtual const Potential< GUM_SCALAR > & | cpf () const |
See gum::prm::PRMAttribute. More... | |
virtual void | addParent (const PRMClassElement< GUM_SCALAR > &elt) |
See gum::prm::PRMAttribute. More... | |
virtual void | addChild (const PRMClassElement< GUM_SCALAR > &elt) |
See gum::prm::PRMAttribute. More... | |
virtual PRMAttribute< GUM_SCALAR > * | getCastDescendant () const |
See gum::prm::PRMAttribute. More... | |
virtual void | setAsCastDescendant (PRMAttribute< GUM_SCALAR > *attr) |
See gum::prm::PRMAttribute. More... | |
virtual void | becomeCastDescendant (PRMType &subtype) |
Change this attribute to be a cast descendant of a an attribute with type subtype. More... | |
virtual MultiDimImplementation< std::string > & | formulas () |
virtual const MultiDimImplementation< std::string > & | formulas () const |
virtual void | swap (const PRMType &old_type, const PRMType &new_type) |
Swap old_type with new_type in the PRMClassElement cpt. More... | |
Getters & setters | |
virtual void | overload (PRMAttribute< GUM_SCALAR > *source) |
Set this as overload of source (necessayr to preserver internal pointers for MultiDims). More... | |
Getters & setters | |
NodeId | id () const |
Returns the NodeId of this element in it's class DAG. More... | |
virtual void | setId (NodeId id) |
Used to assign the id of this element. More... | |
virtual PRMObject::prm_type | obj_type () const |
Fast access to random variable's properties | |
const std::string & | safeName () const |
Returns the safe name of this PRMClassElement, if any. More... | |
virtual std::string | cast (const PRMType &t) const |
Returns the name of the cast descendant with PRMType t of this PRMClassElement. More... | |
Getters & setters. | |
const std::string & | name () const |
Returns the name of this object. More... | |
void | name (const std::string &name) |
Change the name of the PRM Object. More... | |
Operators | |
bool | operator== (const PRMObject &obj) const |
To PRMObject are equal if they have the same name (which is unique). More... | |
bool | operator!= (const PRMObject &obj) const |
To PRMObject are equal if they have the same name (which is unique). More... | |
Protected Attributes | |
std::string | _safeName |
The safe name of this PRMClassElement. More... | |
Protected Member Functions | |
virtual PRMType * | _type () |
virtual void | _type (PRMType *t) |
Built-in type | |
enum | ClassElementType { prm_attribute, prm_aggregate, prm_refslot, prm_slotchain, prm_parameter } |
Returns true if obj_ptr is of type PRMReferenceSlot. More... | |
static std::string | enum2str (ClassElementType type) |
Returns true if obj_ptr is of type PRMReferenceSlot. More... | |
static INLINE bool | isReferenceSlot (const PRMClassElement< GUM_SCALAR > &elt) |
Returns true if obj_ptr is of type PRMReferenceSlot. More... | |
static INLINE bool | isAttribute (const PRMClassElement< GUM_SCALAR > &elt) |
Returns true if obj_ptr is of type PRMAttribute. More... | |
static INLINE bool | isAggregate (const PRMClassElement< GUM_SCALAR > &elt) |
Return true if obj is of type PRMAggregate. More... | |
static INLINE bool | isSlotChain (const PRMClassElement< GUM_SCALAR > &elt) |
Return true if obj is of type PRMSlotChain. More... | |
static INLINE bool | isParameter (const PRMClassElement< GUM_SCALAR > &elt) |
Return true if obj is of type PRMParameter. More... | |
Built-in types. | |
enum | prm_type : char { prm_type::ALL, prm_type::CLASS, prm_type::PRM_INTERFACE, prm_type::CLASS_ELT, prm_type::TYPE, prm_type::SYSTEM, prm_type::INSTANCE } |
Enumeration of the different types of objects handled by a PRM. More... | |
static std::string | enum2str (prm_type type) |
Returns the string representation of a PRMObject. More... | |
static std::string | LEFT_CAST () |
Enumeration of the different types of objects handled by a PRM. More... | |
static std::string | RIGHT_CAST () |
Enumeration of the different types of objects handled by a PRM. More... | |
static INLINE bool | isClass (const PRMObject &obj) |
Returns true if obj_ptr is of type Class. More... | |
static INLINE bool | isInterface (const PRMObject &obj) |
Returns true if obj_ptr is of type PRMInterface. More... | |
static INLINE bool | isInstance (const PRMObject &obj) |
Returns true if obj_ptr is of type PRMInstance. More... | |
<agrum/PRM/elements/formAttribute.h>
PRMFormAttribute is a member of a Class in a PRM.
Definition at line 50 of file PRMFormAttribute.h.
|
inherited |
Returns true if obj_ptr is of type PRMReferenceSlot.
Enumerator | |
---|---|
prm_attribute | |
prm_aggregate | |
prm_refslot | |
prm_slotchain | |
prm_parameter |
Definition at line 95 of file PRMClassElement.h.
|
stronginherited |
Enumeration of the different types of objects handled by a PRM.
The "all" type is used to tell that we want any kind of PRMType (useful with iterators for example). No PRMObject will ever have "all" as type.
Enumerator | |
---|---|
ALL | |
CLASS | |
PRM_INTERFACE | |
CLASS_ELT | |
TYPE | |
SYSTEM | |
INSTANCE |
Definition at line 69 of file PRMObject.h.
gum::prm::PRMFormAttribute< GUM_SCALAR >::PRMFormAttribute | ( | const PRMClass< GUM_SCALAR > & | c, |
const std::string & | name, | ||
const PRMType & | type, | ||
MultiDimImplementation< std::string > * | impl = new MultiDimArray< std::string >() |
||
) |
Definition at line 43 of file PRMFormAttribute_tpl.h.
References gum::prm::PRMFormAttribute< GUM_SCALAR >::__formulas, gum::prm::PRMFormAttribute< GUM_SCALAR >::__type, gum::prm::PRMClassElement< GUM_SCALAR >::_safeName, gum::MultiDimImplementation< GUM_SCALAR >::add(), gum::prm::PRMObject::LEFT_CAST(), gum::Variable::name(), gum::prm::PRMObject::name(), and gum::prm::PRMObject::RIGHT_CAST().
|
virtual |
Definition at line 57 of file PRMFormAttribute_tpl.h.
References gum::prm::PRMFormAttribute< GUM_SCALAR >::__cpf, gum::prm::PRMFormAttribute< GUM_SCALAR >::__formulas, and gum::prm::PRMFormAttribute< GUM_SCALAR >::__type.
|
private |
Definition at line 257 of file PRMFormAttribute_tpl.h.
References GUM_ERROR, and gum::prm::PRMFormAttribute< GUM_SCALAR >::operator=().
|
private |
Definition at line 271 of file PRMFormAttribute_tpl.h.
References gum::prm::PRMFormAttribute< GUM_SCALAR >::__class, gum::prm::PRMFormAttribute< GUM_SCALAR >::__cpf, gum::prm::PRMFormAttribute< GUM_SCALAR >::__formulas, gum::prm::PRMFormAttribute< GUM_SCALAR >::__type, gum::MultiDimImplementation< GUM_SCALAR >::contains(), gum::Instantiation::end(), gum::MultiDimContainer< GUM_SCALAR >::get(), GUM_ERROR, gum::Instantiation::inc(), gum::HashTable< Key, Val, Alloc >::insert(), gum::Formula::result(), gum::Instantiation::setFirst(), gum::Formula::variables(), and gum::MultiDimImplementation< GUM_SCALAR >::variablesSequence().
Referenced by gum::prm::PRMFormAttribute< GUM_SCALAR >::cpf().
|
protectedvirtual |
Implements gum::prm::PRMAttribute< GUM_SCALAR >.
Definition at line 370 of file PRMFormAttribute_tpl.h.
References gum::prm::PRMFormAttribute< GUM_SCALAR >::__type.
|
protectedvirtual |
Implements gum::prm::PRMAttribute< GUM_SCALAR >.
Definition at line 375 of file PRMFormAttribute_tpl.h.
References gum::prm::PRMFormAttribute< GUM_SCALAR >::__cpf, gum::prm::PRMFormAttribute< GUM_SCALAR >::__formulas, gum::prm::PRMFormAttribute< GUM_SCALAR >::__type, gum::MultiDimImplementation< GUM_SCALAR >::add(), gum::MultiDimImplementation< GUM_SCALAR >::contains(), gum::DiscreteVariable::domainSize(), gum::Instantiation::end(), GUM_ERROR, gum::Instantiation::inc(), gum::MultiDimContainer< GUM_SCALAR >::set(), and gum::Instantiation::setFirst().
|
virtual |
Implements gum::prm::PRMAttribute< GUM_SCALAR >.
Definition at line 180 of file PRMFormAttribute_tpl.h.
|
virtual |
Implements gum::prm::PRMAttribute< GUM_SCALAR >.
Definition at line 160 of file PRMFormAttribute_tpl.h.
References gum::prm::PRMFormAttribute< GUM_SCALAR >::__cpf, gum::prm::PRMFormAttribute< GUM_SCALAR >::__formulas, gum::prm::PRMFormAttribute< GUM_SCALAR >::__type, gum::MultiDimImplementation< GUM_SCALAR >::add(), gum::MultiDimImplementation< GUM_SCALAR >::contains(), GUM_ERROR, gum::prm::PRMObject::name(), and gum::prm::PRMClassElement< GUM_SCALAR >::type().
|
virtual |
Change this attribute to be a cast descendant of a an attribute with type subtype.
Implements gum::prm::PRMAttribute< GUM_SCALAR >.
Definition at line 232 of file PRMFormAttribute_tpl.h.
References gum::prm::PRMFormAttribute< GUM_SCALAR >::__cpf, gum::prm::PRMFormAttribute< GUM_SCALAR >::__formulas, gum::MultiDimImplementation< GUM_SCALAR >::add(), gum::Instantiation::end(), gum::Instantiation::inc(), gum::prm::PRMType::label_map(), gum::Instantiation::pos(), gum::MultiDimContainer< GUM_SCALAR >::set(), gum::Instantiation::setFirst(), gum::prm::PRMFormAttribute< GUM_SCALAR >::type(), and gum::prm::PRMType::variable().
|
virtualinherited |
Returns the name of the cast descendant with PRMType t of this PRMClassElement.
t | The type in which we want to cast this PRMClassElement. |
OperationNotAllowed | If the cast is impossible. |
Definition at line 76 of file PRMClassElement_tpl.h.
Referenced by gum::prm::PRMFactory< GUM_SCALAR >::addNoisyOrCompound(), gum::prm::PRMFormAttribute< GUM_SCALAR >::getCastDescendant(), gum::prm::PRMScalarAttribute< GUM_SCALAR >::getCastDescendant(), and gum::prm::PRMClassElement< double >::isParameter().
|
virtual |
Implements gum::prm::PRMAttribute< GUM_SCALAR >.
Definition at line 74 of file PRMFormAttribute_tpl.h.
References gum::prm::PRMFormAttribute< GUM_SCALAR >::__class, gum::prm::PRMFormAttribute< GUM_SCALAR >::__formulas, gum::prm::PRMFormAttribute< GUM_SCALAR >::__type, gum::Instantiation::end(), gum::MultiDimContainer< GUM_SCALAR >::get(), gum::Instantiation::inc(), gum::prm::PRMObject::name(), gum::Instantiation::setFirst(), gum::prm::PRMFormAttribute< GUM_SCALAR >::type(), and gum::MultiDimImplementation< GUM_SCALAR >::variablesSequence().
|
virtual |
Implements gum::prm::PRMAttribute< GUM_SCALAR >.
Definition at line 93 of file PRMFormAttribute_tpl.h.
References gum::prm::PRMFormAttribute< GUM_SCALAR >::__cpf, gum::prm::PRMFormAttribute< GUM_SCALAR >::__formulas, gum::prm::PRMFormAttribute< GUM_SCALAR >::__type, gum::MultiDimImplementation< GUM_SCALAR >::add(), gum::MultiDimImplementation< GUM_SCALAR >::contains(), gum::prm::PRMAttribute< GUM_SCALAR >::cpf(), gum::BijectionImplementation< T1, T2, Alloc, std::is_scalar< T1 >::value &&std::is_scalar< T2 >::value >::second(), gum::MultiDimContainer< GUM_SCALAR >::set(), gum::to_string(), and gum::prm::PRMAttribute< GUM_SCALAR >::type().
|
virtual |
Implements gum::prm::PRMAttribute< GUM_SCALAR >.
Definition at line 154 of file PRMFormAttribute_tpl.h.
References gum::prm::PRMFormAttribute< GUM_SCALAR >::__cpf, and gum::prm::PRMFormAttribute< GUM_SCALAR >::__fillCpf().
|
virtual |
Implements gum::prm::PRMAttribute< GUM_SCALAR >.
Definition at line 139 of file PRMFormAttribute_tpl.h.
References gum::prm::PRMClassElement< GUM_SCALAR >::prm_attribute.
|
inlinestaticinherited |
Returns the string representation of a PRMObject.
Definition at line 83 of file PRMObject.h.
References gum::prm::PRMObject::CLASS, gum::prm::PRMObject::CLASS_ELT, gum::prm::PRMObject::INSTANCE, gum::prm::PRMObject::PRM_INTERFACE, gum::prm::PRMObject::SYSTEM, and gum::prm::PRMObject::TYPE.
Referenced by gum::prm::operator<<().
|
inlinestaticinherited |
Returns true if obj_ptr is of type PRMReferenceSlot.
Definition at line 103 of file PRMClassElement.h.
|
virtual |
Definition at line 309 of file PRMFormAttribute_tpl.h.
References gum::prm::PRMFormAttribute< GUM_SCALAR >::__cpf, and gum::prm::PRMFormAttribute< GUM_SCALAR >::__formulas.
|
virtual |
Definition at line 319 of file PRMFormAttribute_tpl.h.
References gum::prm::PRMFormAttribute< GUM_SCALAR >::__formulas.
|
virtual |
Implements gum::prm::PRMAttribute< GUM_SCALAR >.
Definition at line 185 of file PRMFormAttribute_tpl.h.
References gum::prm::PRMFormAttribute< GUM_SCALAR >::__formulas, gum::prm::PRMFormAttribute< GUM_SCALAR >::__type, gum::prm::PRMScalarAttribute< GUM_SCALAR >::addParent(), gum::prm::PRMClassElement< GUM_SCALAR >::cast(), gum::MultiDimImplementation< GUM_SCALAR >::contains(), gum::prm::PRMScalarAttribute< GUM_SCALAR >::cpf(), GUM_ERROR, gum::prm::PRMType::label_map(), gum::prm::PRMObject::name(), gum::prm::PRMType::superType(), gum::prm::PRMFormAttribute< GUM_SCALAR >::type(), gum::prm::PRMScalarAttribute< GUM_SCALAR >::type(), and gum::prm::PRMType::variable().
|
inherited |
Returns the NodeId of this element in it's class DAG.
Definition at line 55 of file PRMClassElement_tpl.h.
Referenced by gum::prm::PRMClass< double >::__addCastDescendants(), gum::prm::PRMInterface< double >::__addCastDescendants(), gum::prm::PRMClass< double >::__checkInterface(), gum::prm::PRMClass< double >::__checkRefInterface(), gum::prm::PRMInstance< GUM_SCALAR >::__copyAggregates(), gum::prm::PRMInstance< GUM_SCALAR >::__copyAttribute(), gum::prm::PRMSlotChain< double >::__copyLastElt(), gum::prm::SVE< GUM_SCALAR >::__getAggPotential(), gum::prm::PRMSystem< double >::__groundPotential(), gum::prm::PRMClass< double >::__inheritClass(), gum::prm::InstanceBayesNet< GUM_SCALAR >::__init(), gum::prm::ClassBayesNet< GUM_SCALAR >::__init(), gum::prm::PRMInstance< GUM_SCALAR >::__instantiateSlotChain(), gum::prm::PRMInterface< double >::__overloadAttribute(), gum::prm::PRMClass< double >::__overloadAttribute(), gum::prm::PRMClass< double >::__overloadParameter(), gum::prm::PRMClass< double >::__overloadReference(), gum::prm::PRMInterface< double >::__overloadReferenceSlot(), gum::prm::SVED< GUM_SCALAR >::_marginal(), gum::prm::SVE< GUM_SCALAR >::_marginal(), gum::prm::PRMInterface< double >::add(), gum::prm::PRMClass< double >::add(), gum::prm::PRMClass< double >::addArc(), gum::prm::PRMClass< double >::inheritAggregates(), gum::prm::PRMClassElement< double >::isParameter(), gum::prm::PRMClass< double >::overload(), gum::prm::PRMInterface< double >::overload(), and gum::prm::PRMFactory< GUM_SCALAR >::startAttribute().
|
inlinestaticinherited |
Return true if obj is of type PRMAggregate.
Definition at line 131 of file PRMClassElement.h.
Referenced by gum::prm::StructuredInference< GUM_SCALAR >::CData::CData().
|
inlinestaticinherited |
Returns true if obj_ptr is of type Class.
Definition at line 102 of file PRMObject.h.
References gum::prm::PRMObject::CLASS, and gum::prm::PRMObject::obj_type().
Referenced by gum::prm::PRMFactory< GUM_SCALAR >::startAttribute().
Returns true if obj_ptr is of type PRMInstance.
Definition at line 112 of file PRMObject.h.
References gum::prm::PRMObject::INSTANCE, gum::prm::PRMObject::name(), gum::prm::PRMObject::obj_type(), gum::prm::PRMObject::operator!=(), gum::prm::PRMObject::operator=(), gum::prm::PRMObject::operator==(), gum::prm::PRMObject::PRMObject(), and gum::prm::PRMObject::~PRMObject().
Returns true if obj_ptr is of type PRMInterface.
Definition at line 107 of file PRMObject.h.
References gum::prm::PRMObject::obj_type(), and gum::prm::PRMObject::PRM_INTERFACE.
|
inlinestaticinherited |
|
inlinestaticinherited |
Returns true if obj_ptr is of type PRMReferenceSlot.
Definition at line 121 of file PRMClassElement.h.
|
inlinestaticinherited |
Return true if obj is of type PRMSlotChain.
Definition at line 136 of file PRMClassElement.h.
Referenced by gum::prm::PRMFactory< GUM_SCALAR >::__retrieveInputs().
|
inlinestaticinherited |
Enumeration of the different types of objects handled by a PRM.
The "all" type is used to tell that we want any kind of PRMType (useful with iterators for example). No PRMObject will ever have "all" as type.
Definition at line 79 of file PRMObject.h.
Referenced by gum::prm::decomposePath(), gum::prm::PRMFormAttribute< GUM_SCALAR >::PRMFormAttribute(), and gum::prm::PRMScalarAttribute< GUM_SCALAR >::PRMScalarAttribute().
|
inherited |
Returns the name of this object.
Definition at line 35 of file PRMObject_inl.h.
References gum::prm::PRMObject::__name.
Referenced by gum::prm::SVE< GUM_SCALAR >::__addDelayedVariable(), gum::prm::PRMClass< double >::__addIOInterfaceFlags(), gum::prm::PRMFactory< GUM_SCALAR >::__addParent(), gum::prm::PRMInstance< GUM_SCALAR >::__addReferingInstance(), gum::prm::PRMClass< double >::__checkInterface(), gum::prm::PRMFactory< GUM_SCALAR >::__checkInterfaceImplementation(), gum::prm::PRMClass< double >::__checkInterfaces(), gum::prm::o3prm::O3ClassFactory< GUM_SCALAR >::__checkRawCPT(), gum::prm::PRMClass< double >::__checkRefInterface(), gum::prm::PRMClass< double >::__checkRefInterfaces(), gum::prm::o3prm::O3ClassFactory< GUM_SCALAR >::__checkRuleCPTSumsTo1(), gum::prm::PRMInstance< GUM_SCALAR >::__copyAggregates(), gum::prm::PRMInstance< GUM_SCALAR >::__copyAttribute(), gum::prm::PRMSlotChain< double >::__copyLastElt(), gum::prm::PRMSystem< double >::__groundAttr(), gum::prm::PRMSystem< double >::__groundPotential(), gum::prm::PRMSystem< double >::__groundRef(), gum::prm::PRMClass< double >::__inheritClass(), gum::prm::PRMInterface< double >::__overloadAttribute(), gum::prm::PRMClass< double >::__overloadAttribute(), gum::prm::PRMClass< double >::__overloadParameter(), gum::prm::PRMClass< double >::__overloadReference(), gum::prm::PRMInterface< double >::__overloadReferenceSlot(), gum::prm::__print_attribute__(), gum::prm::__print_instance__(), gum::prm::gspan::StrictSearch< GUM_SCALAR >::__str(), gum::prm::StructuredInference< GUM_SCALAR >::__str(), gum::prm::PRMInterface< double >::add(), gum::prm::PRMSystem< double >::add(), gum::prm::PRMClass< double >::add(), gum::prm::PRMFactory< GUM_SCALAR >::addAggregator(), gum::prm::PRMFormAttribute< GUM_SCALAR >::addParent(), gum::prm::PRMScalarAttribute< GUM_SCALAR >::addParent(), gum::prm::PRMFormAttribute< GUM_SCALAR >::copy(), gum::prm::PRMScalarAttribute< GUM_SCALAR >::copy(), gum::prm::o3prmr::O3prmrInterpreter::findAttributeName(), gum::prm::o3prmr::O3prmrInterpreter::findInstanceName(), gum::prm::PRMFormAttribute< GUM_SCALAR >::getCastDescendant(), gum::prm::PRMScalarAttribute< GUM_SCALAR >::getCastDescendant(), gum::prm::PRMClass< double >::inheritAggregates(), gum::prm::PRMClass< double >::isCastDescendant(), gum::prm::PRMObject::isInstance(), gum::prm::PRMObject::name(), gum::prm::PRMType::name(), gum::prm::PRMFormAttribute< GUM_SCALAR >::newFactory(), gum::prm::PRMScalarAttribute< GUM_SCALAR >::newFactory(), gum::prm::PRMType::operator!=(), gum::prm::PRMObject::operator!=(), operator<<(), gum::prm::PRMType::operator==(), gum::prm::PRMObject::operator==(), gum::prm::PRMClass< double >::overload(), gum::prm::PRMInterface< double >::overload(), gum::prm::PRMFormAttribute< GUM_SCALAR >::PRMFormAttribute(), gum::prm::PRMReferenceSlot< double >::PRMReferenceSlot(), gum::prm::PRMScalarAttribute< GUM_SCALAR >::PRMScalarAttribute(), gum::prm::PRMFactory< GUM_SCALAR >::startClass(), gum::prm::PRMFactory< GUM_SCALAR >::startInterface(), gum::prm::PRMFactory< GUM_SCALAR >::startSystem(), and gum::prm::PRMAggregate< double >::str2enum().
|
inherited |
Change the name of the PRM Object.
Definition at line 39 of file PRMObject_inl.h.
References gum::prm::PRMObject::__name, and gum::prm::PRMObject::name().
|
virtual |
Implements gum::prm::PRMAttribute< GUM_SCALAR >.
Definition at line 65 of file PRMFormAttribute_tpl.h.
References gum::prm::PRMFormAttribute< GUM_SCALAR >::__formulas, gum::prm::PRMObject::name(), gum::MultiDimImplementation< GUM_SCALAR >::newFactory(), and gum::prm::PRMFormAttribute< GUM_SCALAR >::type().
|
virtualinherited |
Implements gum::prm::PRMObject.
Definition at line 60 of file PRMClassElement_tpl.h.
Referenced by gum::prm::PRMClassElement< double >::isParameter().
To PRMObject are equal if they have the same name (which is unique).
Definition at line 49 of file PRMObject_inl.h.
References gum::prm::PRMObject::__name, and gum::prm::PRMObject::name().
Referenced by gum::prm::PRMObject::isInstance().
|
private |
Definition at line 266 of file PRMFormAttribute_tpl.h.
References GUM_ERROR.
Referenced by gum::prm::PRMFormAttribute< GUM_SCALAR >::PRMFormAttribute().
To PRMObject are equal if they have the same name (which is unique).
Definition at line 43 of file PRMObject_inl.h.
References gum::prm::PRMObject::__name, and gum::prm::PRMObject::name().
Referenced by gum::prm::PRMObject::isInstance().
|
virtualinherited |
Set this as overload of source (necessayr to preserver internal pointers for MultiDims).
Definition at line 53 of file PRMAttribute_tpl.h.
Referenced by gum::prm::PRMInterface< double >::__overloadAttribute(), and gum::prm::PRMClass< double >::__overloadAttribute().
|
inlinestaticinherited |
Enumeration of the different types of objects handled by a PRM.
The "all" type is used to tell that we want any kind of PRMType (useful with iterators for example). No PRMObject will ever have "all" as type.
Definition at line 80 of file PRMObject.h.
Referenced by gum::prm::decomposePath(), gum::prm::PRMFormAttribute< GUM_SCALAR >::PRMFormAttribute(), and gum::prm::PRMScalarAttribute< GUM_SCALAR >::PRMScalarAttribute().
|
inherited |
Returns the safe name of this PRMClassElement, if any.
This will only work if this PRMClassElement is an PRMAttribute or an PRMAggregate.
NotFound& | Raised if this PRMClassElement does not have any safe name. |
Definition at line 70 of file PRMClassElement_tpl.h.
Referenced by gum::prm::PRMClass< double >::__addCastDescendants(), gum::prm::PRMInterface< double >::__addCastDescendants(), gum::prm::PRMFactory< GUM_SCALAR >::__addParent(), gum::prm::PRMInstance< GUM_SCALAR >::__copyAttributeCPF(), gum::prm::SVED< GUM_SCALAR >::__getAggPotential(), gum::prm::PRMSystem< double >::__groundPotential(), gum::prm::PRMSystem< double >::__groundRef(), gum::prm::PRMClass< double >::__inheritClass(), gum::prm::PRMClass< double >::__overloadAggregate(), gum::prm::PRMInterface< double >::__overloadAttribute(), gum::prm::PRMClass< double >::__overloadAttribute(), gum::prm::PRMClass< double >::__overloadParameter(), gum::prm::PRMClass< double >::__overloadReference(), gum::prm::PRMInterface< double >::__overloadReferenceSlot(), gum::prm::__print_attribute__(), gum::prm::gspan::StrictSearch< GUM_SCALAR >::__str(), gum::prm::StructuredInference< GUM_SCALAR >::__str(), gum::prm::PRMClassElementContainer< double >::_getIOFlag(), gum::prm::PRMClassElementContainer< double >::_setIOFlag(), gum::prm::PRMInterface< double >::add(), gum::prm::PRMClass< double >::add(), gum::prm::PRMFactory< GUM_SCALAR >::addAggregator(), gum::prm::PRMFactory< GUM_SCALAR >::addAttribute(), gum::prm::PRMClassElementContainer< double >::belongsTo(), gum::prm::PRMClass< double >::inheritAggregates(), gum::prm::PRMClassElement< double >::isParameter(), gum::prm::PRMClassElementContainer< double >::setInputNode(), and gum::prm::PRMClassElementContainer< double >::setOutputNode().
|
virtual |
Implements gum::prm::PRMAttribute< GUM_SCALAR >.
Definition at line 215 of file PRMFormAttribute_tpl.h.
References gum::prm::PRMAttribute< GUM_SCALAR >::becomeCastDescendant(), GUM_ERROR, gum::prm::PRMType::name(), gum::prm::PRMType::setSuper(), gum::prm::PRMFormAttribute< GUM_SCALAR >::type(), and gum::prm::PRMAttribute< GUM_SCALAR >::type().
|
virtualinherited |
Used to assign the id of this element.
Definition at line 65 of file PRMClassElement_tpl.h.
Referenced by gum::prm::PRMClass< double >::__addCastDescendants(), gum::prm::PRMInterface< double >::__addCastDescendants(), gum::prm::PRMClass< double >::__checkInterface(), gum::prm::PRMClass< double >::__checkRefInterface(), gum::prm::PRMSlotChain< double >::__copyLastElt(), gum::prm::PRMClass< double >::__inheritClass(), gum::prm::PRMInterface< double >::__inheritInterface(), gum::prm::PRMInterface< double >::__overloadAttribute(), gum::prm::PRMClass< double >::__overloadAttribute(), gum::prm::PRMClass< double >::__overloadParameter(), gum::prm::PRMClass< double >::__overloadReference(), gum::prm::PRMInterface< double >::__overloadReferenceSlot(), gum::prm::PRMInterface< double >::add(), gum::prm::PRMClass< double >::add(), gum::prm::PRMClass< double >::inheritAggregates(), gum::prm::PRMClass< double >::inheritParameters(), gum::prm::PRMClass< double >::inheritReferenceSlots(), gum::prm::PRMClass< double >::inheritSlotChains(), and gum::prm::PRMClassElement< double >::isParameter().
|
virtual |
Swap old_type with new_type in the PRMClassElement cpt.
Implements gum::prm::PRMAttribute< GUM_SCALAR >.
Definition at line 324 of file PRMFormAttribute_tpl.h.
References gum::prm::PRMFormAttribute< GUM_SCALAR >::__cpf, gum::prm::PRMFormAttribute< GUM_SCALAR >::__formulas, gum::prm::PRMFormAttribute< GUM_SCALAR >::__type, gum::MultiDimImplementation< GUM_SCALAR >::add(), gum::MultiDimImplementation< GUM_SCALAR >::contains(), gum::DiscreteVariable::domainSize(), gum::Instantiation::end(), GUM_ERROR, gum::Instantiation::inc(), gum::prm::PRMType::name(), gum::MultiDimContainer< GUM_SCALAR >::set(), gum::Instantiation::setFirst(), and gum::prm::PRMType::variable().
|
virtual |
Implements gum::prm::PRMAttribute< GUM_SCALAR >.
Definition at line 144 of file PRMFormAttribute_tpl.h.
References gum::prm::PRMFormAttribute< GUM_SCALAR >::__type.
Referenced by gum::prm::PRMFormAttribute< GUM_SCALAR >::becomeCastDescendant(), gum::prm::PRMFormAttribute< GUM_SCALAR >::copy(), gum::prm::PRMFormAttribute< GUM_SCALAR >::getCastDescendant(), gum::prm::PRMFormAttribute< GUM_SCALAR >::newFactory(), and gum::prm::PRMFormAttribute< GUM_SCALAR >::setAsCastDescendant().
|
virtual |
Implements gum::prm::PRMAttribute< GUM_SCALAR >.
Definition at line 149 of file PRMFormAttribute_tpl.h.
References gum::prm::PRMFormAttribute< GUM_SCALAR >::__type.
|
private |
A pointe toward the class of this attribute.
Definition at line 123 of file PRMFormAttribute.h.
Referenced by gum::prm::PRMFormAttribute< GUM_SCALAR >::__fillCpf(), and gum::prm::PRMFormAttribute< GUM_SCALAR >::copy().
|
mutableprivate |
A pointer on the Potential of this attribute.
Definition at line 117 of file PRMFormAttribute.h.
Referenced by gum::prm::PRMFormAttribute< GUM_SCALAR >::__fillCpf(), gum::prm::PRMFormAttribute< GUM_SCALAR >::_type(), gum::prm::PRMFormAttribute< GUM_SCALAR >::addParent(), gum::prm::PRMFormAttribute< GUM_SCALAR >::becomeCastDescendant(), gum::prm::PRMFormAttribute< GUM_SCALAR >::copyCpf(), gum::prm::PRMFormAttribute< GUM_SCALAR >::cpf(), gum::prm::PRMFormAttribute< GUM_SCALAR >::formulas(), gum::prm::PRMFormAttribute< GUM_SCALAR >::swap(), and gum::prm::PRMFormAttribute< GUM_SCALAR >::~PRMFormAttribute().
|
private |
A pointer on the Potential of this attribute.
Definition at line 120 of file PRMFormAttribute.h.
Referenced by gum::prm::PRMFormAttribute< GUM_SCALAR >::__fillCpf(), gum::prm::PRMFormAttribute< GUM_SCALAR >::_type(), gum::prm::PRMFormAttribute< GUM_SCALAR >::addParent(), gum::prm::PRMFormAttribute< GUM_SCALAR >::becomeCastDescendant(), gum::prm::PRMFormAttribute< GUM_SCALAR >::copy(), gum::prm::PRMFormAttribute< GUM_SCALAR >::copyCpf(), gum::prm::PRMFormAttribute< GUM_SCALAR >::formulas(), gum::prm::PRMFormAttribute< GUM_SCALAR >::getCastDescendant(), gum::prm::PRMFormAttribute< GUM_SCALAR >::newFactory(), gum::prm::PRMFormAttribute< GUM_SCALAR >::PRMFormAttribute(), gum::prm::PRMFormAttribute< GUM_SCALAR >::swap(), and gum::prm::PRMFormAttribute< GUM_SCALAR >::~PRMFormAttribute().
|
private |
The random variable type of this attribute.
Definition at line 114 of file PRMFormAttribute.h.
Referenced by gum::prm::PRMFormAttribute< GUM_SCALAR >::__fillCpf(), gum::prm::PRMFormAttribute< GUM_SCALAR >::_type(), gum::prm::PRMFormAttribute< GUM_SCALAR >::addParent(), gum::prm::PRMFormAttribute< GUM_SCALAR >::copy(), gum::prm::PRMFormAttribute< GUM_SCALAR >::copyCpf(), gum::prm::PRMFormAttribute< GUM_SCALAR >::getCastDescendant(), gum::prm::PRMFormAttribute< GUM_SCALAR >::PRMFormAttribute(), gum::prm::PRMFormAttribute< GUM_SCALAR >::swap(), gum::prm::PRMFormAttribute< GUM_SCALAR >::type(), and gum::prm::PRMFormAttribute< GUM_SCALAR >::~PRMFormAttribute().
|
protectedinherited |
The safe name of this PRMClassElement.
Definition at line 260 of file PRMClassElement.h.
Referenced by gum::prm::PRMFormAttribute< GUM_SCALAR >::PRMFormAttribute(), and gum::prm::PRMScalarAttribute< GUM_SCALAR >::PRMScalarAttribute().