![]() |
aGrUM 3.0.0
a C++ library for (probabilistic) graphical models
|
<agrum/PRM/elements/funcAttribute.h> More...
#include <PRMFuncAttribute.h>
Public Member Functions | |
| PRMFuncAttribute (std::string_view name, const PRMType &type, MultiDimImplementation< GUM_SCALAR > *impl=new MultiDimArray< GUM_SCALAR >()) | |
| Constructor used by gum::Class. | |
| ~PRMFuncAttribute () override | |
| Destructor. | |
| void | addParent (const PRMClassElement< GUM_SCALAR > &elt) override |
| See gum::PRMClassElement::addParent_(). | |
| void | addChild (const PRMClassElement< GUM_SCALAR > &elt) override |
| See gum::PRMClassElement::addChild_(). | |
Getters & setters | |
| PRMAttribute< GUM_SCALAR > * | newFactory (const PRMClass< GUM_SCALAR > &c) const override |
| See gum::PRMClassElement::elt_type(). | |
| PRMAttribute< GUM_SCALAR > * | copy (Bijection< const DiscreteVariable *, const DiscreteVariable * > bij) const override |
| See gum::PRMClassElement::elt_type(). | |
| void | copyCpf (const Bijection< const DiscreteVariable *, const DiscreteVariable * > &bif, const PRMAttribute< GUM_SCALAR > &source) override |
| See gum::PRMClassElement::elt_type(). | |
| PRMClassElement< GUM_SCALAR >::ClassElementType | elt_type () const override |
| See gum::PRMClassElement::elt_type(). | |
| PRMType & | type () override |
| See gum::PRMClassElement::type(). | |
| const PRMType & | type () const override |
| See gum::PRMClassElement::type(). | |
| const Tensor< GUM_SCALAR > & | cpf () const override |
| See gum::PRMClassElement::cpf(). | |
| PRMAttribute< GUM_SCALAR > * | getCastDescendant () const override |
| See gum::PRMClassElement::elt_type(). | |
| void | setAsCastDescendant (PRMAttribute< GUM_SCALAR > *attr) override |
| See gum::PRMClassElement::elt_type(). | |
| void | becomeCastDescendant (PRMType &subtype) override |
| See gum::PRMClassElement::elt_type(). | |
| void | swap (const PRMType &old_type, const PRMType &new_type) override |
| Swap old_type with new_type in the PRMClassElement cpt. | |
Getters & setters | |
| virtual void | overload (PRMAttribute< GUM_SCALAR > *source) |
| Set this as overload of source (necessayr to preserver internal pointers for MultiDims). | |
Getters & setters | |
| NodeId | id () const |
| Returns the NodeId of this element in it's class DAG. | |
| virtual void | setId (NodeId id) |
| Used to assign the id of this element. | |
| PRMObject::prm_type | obj_type () const override |
Fast access to random variable's properties | |
| const std::string & | safeName () const |
| Returns the safe name of this PRMClassElement, if any. | |
| virtual std::string | cast (const PRMType &t) const |
| Returns the name of the cast descendant with PRMType t of this PRMClassElement. | |
Getters & setters. | |
| const std::string & | name () const |
| Returns the name of this object. | |
| void | name (std::string_view name) |
| Change the name of the PRM Object. | |
Operators | |
| bool | operator== (const PRMObject &obj) const |
| To PRMObject are equal if they have the same name (which is unique). | |
| bool | operator!= (const PRMObject &obj) const |
| To PRMObject are equal if they have the same name (which is unique). | |
Protected Member Functions | |
| PRMFuncAttribute (const PRMFuncAttribute< GUM_SCALAR > &source) | |
| Copy constructor. Don't use it. | |
| PRMFuncAttribute< GUM_SCALAR > & | operator= (const PRMFuncAttribute< GUM_SCALAR > &from) |
| Copy operator. Don't use it. | |
| virtual void | setCpf_ (Tensor< GUM_SCALAR > *cpf) |
| PRMType * | type_ () override |
| void | type_ (PRMType *t) override |
Protected Attributes | |
| std::string | safeName_ |
| The safe name of this PRMClassElement. | |
Private Attributes | |
| NodeId | _id_ |
| The node's id of this element. | |
Private members | |
| PRMType * | _type_ |
| The random variable type of this attribute. | |
| Tensor< GUM_SCALAR > * | _cpf_ |
| A pointer on the Tensor of this attribute. | |
Private members. | |
| std::string | _name_ |
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. | |
| static INLINE bool | isReferenceSlot (const PRMClassElement< GUM_SCALAR > &elt) |
| Returns true if obj_ptr is of type PRMReferenceSlot. | |
| static INLINE bool | isAttribute (const PRMClassElement< GUM_SCALAR > &elt) |
| Returns true if obj_ptr is of type PRMAttribute. | |
| static INLINE bool | isAggregate (const PRMClassElement< GUM_SCALAR > &elt) |
| Return true if obj is of type PRMAggregate. | |
| static INLINE bool | isSlotChain (const PRMClassElement< GUM_SCALAR > &elt) |
| Return true if obj is of type PRMSlotChain. | |
| static INLINE bool | isParameter (const PRMClassElement< GUM_SCALAR > &elt) |
| Return true if obj is of type PRMParameter. | |
Built-in types. | |
| enum class | prm_type : char { ALL , CLASS , PRM_INTERFACE , CLASS_ELT , TYPE , SYSTEM , 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. | |
| 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. | |
| static INLINE bool | isClass (const PRMObject &obj) |
| Returns true if obj_ptr is of type Class. | |
| static INLINE bool | isInterface (const PRMObject &obj) |
| Returns true if obj_ptr is of type PRMInterface. | |
| static INLINE bool | isInstance (const PRMObject &obj) |
| Returns true if obj_ptr is of type PRMInstance. | |
<agrum/PRM/elements/funcAttribute.h>
This class overload gum::prm::PRMClassElement::addParent_() and gum::prm::PRMClassElement::addChild_ with empty methods.
This class should be used when dealing with functions such as Noisy-Or which require special method calls to add parents. When dealing with such attributes, you should create the MultiDim yourself and populate it with the attribute's parents.
See gum::prm::PRMFactory::addAttribute(PRMAttribute*) for more details.
Definition at line 74 of file PRMFuncAttribute.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 109 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 90 of file PRMObject.h.
| gum::prm::PRMFuncAttribute< GUM_SCALAR >::PRMFuncAttribute | ( | std::string_view | name, |
| const PRMType & | type, | ||
| MultiDimImplementation< GUM_SCALAR > * | impl = new MultiDimArray< GUM_SCALAR >() ) |
Constructor used by gum::Class.
This will create an PRMFuncAttribute with only one variable: type and with the given implementation.
| name | The name of this PRMFuncAttribute. |
| type | The type of this PRMFuncAttribute, it is copied. |
| impl | The MultiDimImplementation used by the internal Tensor of this PRMFuncAttribute. it will be deleted after the call of ~PRMFuncAttribute. |
Definition at line 57 of file PRMFuncAttribute_tpl.h.
References PRMFuncAttribute(), gum::prm::PRMScalarAttribute< GUM_SCALAR >::PRMScalarAttribute(), gum::prm::PRMObject::name(), and gum::prm::PRMScalarAttribute< GUM_SCALAR >::type().
Referenced by PRMFuncAttribute(), PRMFuncAttribute(), ~PRMFuncAttribute(), and operator=().
|
override |
Destructor.
Definition at line 65 of file PRMFuncAttribute_tpl.h.
References PRMFuncAttribute().
|
protected |
Copy constructor. Don't use it.
Definition at line 76 of file PRMFuncAttribute_tpl.h.
References PRMFuncAttribute(), gum::prm::PRMScalarAttribute< GUM_SCALAR >::PRMScalarAttribute(), and GUM_ERROR.
|
overridevirtual |
See gum::PRMClassElement::addChild_().
Implements gum::prm::PRMAttribute< GUM_SCALAR >.
Definition at line 73 of file PRMFuncAttribute_tpl.h.
|
overridevirtual |
See gum::PRMClassElement::addParent_().
Implements gum::prm::PRMAttribute< GUM_SCALAR >.
Definition at line 70 of file PRMFuncAttribute_tpl.h.
|
overridevirtualinherited |
See gum::PRMClassElement::elt_type().
Implements gum::prm::PRMAttribute< GUM_SCALAR >.
Definition at line 213 of file PRMScalarAttribute_tpl.h.
References _cpf_, gum::Instantiation::end(), gum::Instantiation::inc(), gum::prm::PRMType::label_map(), gum::Instantiation::pos(), gum::Instantiation::setFirst(), 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 93 of file PRMClassElement_tpl.h.
References GUM_ERROR, gum::prm::PRMObject::LEFT_CAST(), gum::prm::PRMObject::name(), gum::prm::PRMType::name(), gum::prm::PRMObject::RIGHT_CAST(), and type().
Referenced by gum::prm::PRMFactory< GUM_SCALAR >::addNoisyOrCompound(), gum::prm::PRMAggregate< GUM_SCALAR >::getCastDescendant(), gum::prm::PRMFormAttribute< GUM_SCALAR >::getCastDescendant(), gum::prm::PRMScalarAttribute< GUM_SCALAR >::getCastDescendant(), gum::prm::PRMFormAttribute< GUM_SCALAR >::setAsCastDescendant(), and gum::prm::PRMScalarAttribute< GUM_SCALAR >::setAsCastDescendant().
|
overridevirtualinherited |
See gum::PRMClassElement::elt_type().
Implements gum::prm::PRMAttribute< GUM_SCALAR >.
Definition at line 98 of file PRMScalarAttribute_tpl.h.
References gum::prm::PRMAttribute< GUM_SCALAR >::PRMAttribute(), PRMScalarAttribute(), copy(), gum::prm::copyTensor(), cpf(), gum::BijectionImplementation< T1, T2, Gen >::existsFirst(), gum::BijectionImplementation< T1, T2, Gen >::insert(), gum::prm::PRMObject::name(), and type().
Referenced by copy().
|
overridevirtualinherited |
See gum::PRMClassElement::elt_type().
Implements gum::prm::PRMAttribute< GUM_SCALAR >.
Definition at line 113 of file PRMScalarAttribute_tpl.h.
References gum::prm::PRMAttribute< GUM_SCALAR >::PRMAttribute(), _cpf_, _type_, gum::prm::PRMAttribute< GUM_SCALAR >::cpf(), gum::Instantiation::end(), gum::Instantiation::inc(), gum::BijectionImplementation< T1, T2, Gen >::second(), gum::Instantiation::setFirst(), gum::prm::PRMAttribute< GUM_SCALAR >::type(), and gum::prm::PRMType::variable().
|
overridevirtualinherited |
See gum::PRMClassElement::cpf().
Implements gum::prm::PRMAttribute< GUM_SCALAR >.
Definition at line 157 of file PRMScalarAttribute_tpl.h.
References _cpf_.
Referenced by copy(), newFactory(), and gum::prm::PRMFuncAttribute< GUM_SCALAR >::setCpf_().
|
overridevirtualinherited |
See gum::PRMClassElement::elt_type().
Implements gum::prm::PRMAttribute< GUM_SCALAR >.
Definition at line 142 of file PRMScalarAttribute_tpl.h.
References gum::prm::PRMClassElement< GUM_SCALAR >::prm_attribute.
|
staticinherited |
Returns true if obj_ptr is of type PRMReferenceSlot.
Definition at line 102 of file PRMClassElement_tpl.h.
References prm_aggregate, prm_attribute, prm_parameter, prm_refslot, prm_slotchain, and type().
|
staticinherited |
Returns the string representation of a PRMObject.
Definition at line 75 of file PRMObject_inl.h.
References CLASS, CLASS_ELT, INSTANCE, PRM_INTERFACE, SYSTEM, and TYPE.
Referenced by gum::prm::operator<<().
|
overridevirtualinherited |
See gum::PRMClassElement::elt_type().
Implements gum::prm::PRMAttribute< GUM_SCALAR >.
Definition at line 177 of file PRMScalarAttribute_tpl.h.
References gum::prm::PRMAttribute< GUM_SCALAR >::PRMAttribute(), PRMScalarAttribute(), gum::prm::PRMClassElement< GUM_SCALAR >::cast(), gum::Instantiation::end(), GUM_ERROR, gum::Instantiation::inc(), gum::prm::PRMObject::name(), gum::Instantiation::setFirst(), type(), and gum::Instantiation::val().
|
inherited |
Returns the NodeId of this element in it's class DAG.
Definition at line 73 of file PRMClassElement_tpl.h.
References _id_.
Referenced by PRMClassElement(), gum::prm::PRMClass< GUM_SCALAR >::_addCastDescendants_(), gum::prm::PRMClass< GUM_SCALAR >::_addCastDescendants_(), gum::prm::PRMInterface< GUM_SCALAR >::_addCastDescendants_(), gum::prm::PRMClass< GUM_SCALAR >::_checkInterface_(), gum::prm::PRMClass< GUM_SCALAR >::_checkRefInterface_(), gum::prm::PRMInstance< GUM_SCALAR >::_copyAggregates_(), gum::prm::PRMInstance< GUM_SCALAR >::_copyAttribute_(), gum::prm::PRMSlotChain< GUM_SCALAR >::_copyLastElt_(), gum::prm::SVE< GUM_SCALAR >::_getAggTensor_(), gum::prm::PRMSystem< GUM_SCALAR >::_groundRef_(), gum::prm::PRMClass< GUM_SCALAR >::_inheritClass_(), gum::prm::ClassBayesNet< GUM_SCALAR >::_init_(), gum::prm::InstanceBayesNet< GUM_SCALAR >::_init_(), gum::prm::PRMInstance< GUM_SCALAR >::_instantiateSlotChain_(), gum::prm::PRMClass< GUM_SCALAR >::_overloadAttribute_(), gum::prm::PRMInterface< GUM_SCALAR >::_overloadAttribute_(), gum::prm::PRMClass< GUM_SCALAR >::_overloadParameter_(), gum::prm::PRMClass< GUM_SCALAR >::_overloadReference_(), gum::prm::PRMInterface< GUM_SCALAR >::_overloadReferenceSlot_(), gum::prm::PRMClass< GUM_SCALAR >::add(), gum::prm::PRMInterface< GUM_SCALAR >::add(), gum::prm::PRMClass< GUM_SCALAR >::addArc(), gum::prm::PRMClass< GUM_SCALAR >::inheritAggregates(), gum::prm::PRMClass< GUM_SCALAR >::overload(), gum::prm::PRMInterface< GUM_SCALAR >::overload(), gum::prm::SVE< GUM_SCALAR >::posterior_(), gum::prm::SVED< GUM_SCALAR >::posterior_(), setId(), and gum::prm::PRMFactory< GUM_SCALAR >::startAttribute().
|
staticinherited |
Return true if obj is of type PRMAggregate.
Definition at line 129 of file PRMClassElement_tpl.h.
References PRMClassElement(), elt_type(), and prm_aggregate.
Referenced by gum::prm::StructuredInference< GUM_SCALAR >::CData::CData(), gum::prm::PRMClass< GUM_SCALAR >::_checkInterface_(), gum::prm::o3prm::O3ClassFactory< GUM_SCALAR >::_checkLocalParent_(), gum::prm::ClassBayesNet< GUM_SCALAR >::_init_(), gum::prm::SVE< GUM_SCALAR >::_initLiftedNodes_(), gum::prm::SVED< GUM_SCALAR >::_initLiftedNodes_(), gum::prm::PRMClass< GUM_SCALAR >::completeInheritance(), gum::prm::PRMFactory< GUM_SCALAR >::continueAggregator(), gum::prm::PRMClassElementContainer< GUM_SCALAR >::setInputNode(), and gum::prm::PRMClassElementContainer< GUM_SCALAR >::setOutputNode().
|
staticinherited |
Returns true if obj_ptr is of type PRMAttribute.
Definition at line 124 of file PRMClassElement_tpl.h.
References PRMClassElement(), elt_type(), and prm_attribute.
Referenced by gum::prm::StructuredInference< GUM_SCALAR >::CData::CData(), gum::prm::PRMClass< GUM_SCALAR >::_checkInterface_(), gum::prm::o3prm::O3ClassFactory< GUM_SCALAR >::_checkLocalParent_(), gum::prm::o3prm::O3InterfaceFactory< GUM_SCALAR >::_checkOverloadLegality_(), gum::prm::PRMSystem< double >::_groundRef_(), gum::prm::ClassBayesNet< GUM_SCALAR >::_init_(), gum::prm::SVE< GUM_SCALAR >::_initLiftedNodes_(), gum::prm::SVED< GUM_SCALAR >::_initLiftedNodes_(), gum::prm::PRMClass< GUM_SCALAR >::_overloadReference_(), gum::prm::PRMInterface< GUM_SCALAR >::add(), gum::prm::PRMClass< GUM_SCALAR >::completeInheritance(), gum::prm::PRMFactory< GUM_SCALAR >::continueAttribute(), gum::prm::PRMClassElementContainer< GUM_SCALAR >::setInputNode(), and gum::prm::PRMClassElementContainer< GUM_SCALAR >::setOutputNode().
Returns true if obj_ptr is of type Class.
Definition at line 93 of file PRMObject_inl.h.
References PRMObject().
Referenced by gum::prm::PRMClass< GUM_SCALAR >::scope(), and gum::prm::PRMFactory< GUM_SCALAR >::startAttribute().
Returns true if obj_ptr is of type PRMInstance.
Definition at line 101 of file PRMObject_inl.h.
References PRMObject(), INSTANCE, and obj_type().
Returns true if obj_ptr is of type PRMInterface.
Definition at line 97 of file PRMObject_inl.h.
|
staticinherited |
Return true if obj is of type PRMParameter.
Definition at line 139 of file PRMClassElement_tpl.h.
References PRMClassElement(), elt_type(), and prm_parameter.
Referenced by gum::prm::o3prm::O3SystemFactory< GUM_SCALAR >::_checkParameters_(), and gum::prm::PRMClass< GUM_SCALAR >::add().
|
staticinherited |
Returns true if obj_ptr is of type PRMReferenceSlot.
Definition at line 119 of file PRMClassElement_tpl.h.
References PRMClassElement(), elt_type(), and prm_refslot.
Referenced by gum::prm::o3prm::O3SystemFactory< GUM_SCALAR >::_checkAssignments_(), gum::prm::o3prm::O3SystemFactory< GUM_SCALAR >::_checkIncrements_(), gum::prm::o3prm::O3InterfaceFactory< GUM_SCALAR >::_checkOverloadLegality_(), gum::prm::o3prm::O3ClassFactory< GUM_SCALAR >::_checkReferenceSlot_(), gum::prm::PRMInterface< GUM_SCALAR >::add(), and gum::prm::PRMFactory< GUM_SCALAR >::setReferenceSlot().
|
staticinherited |
Return true if obj is of type PRMSlotChain.
Definition at line 134 of file PRMClassElement_tpl.h.
References PRMClassElement(), elt_type(), and prm_slotchain.
Referenced by gum::prm::o3prm::O3ClassFactory< GUM_SCALAR >::_checkLocalParent_(), gum::prm::PRMFactory< GUM_SCALAR >::_retrieveInputs_(), gum::prm::PRMClass< GUM_SCALAR >::add(), and gum::prm::PRMFactory< GUM_SCALAR >::addNoisyOrCompound().
|
staticinherited |
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 71 of file PRMObject_inl.h.
Referenced by gum::prm::PRMAggregate< GUM_SCALAR >::PRMAggregate(), gum::prm::PRMAggregate< GUM_SCALAR >::PRMAggregate(), gum::prm::PRMFormAttribute< GUM_SCALAR >::PRMFormAttribute(), gum::prm::PRMReferenceSlot< GUM_SCALAR >::PRMReferenceSlot(), gum::prm::PRMScalarAttribute< GUM_SCALAR >::PRMScalarAttribute(), gum::prm::PRMSlotChain< GUM_SCALAR >::PRMSlotChain(), gum::prm::PRMClassElement< GUM_SCALAR >::cast(), and gum::prm::decomposePath().
|
inherited |
Returns the name of this object.
Definition at line 57 of file PRMObject_inl.h.
References _name_.
Referenced by gum::prm::PRMAggregate< GUM_SCALAR >::PRMAggregate(), gum::prm::PRMAggregate< GUM_SCALAR >::PRMAggregate(), gum::prm::PRMAttribute< GUM_SCALAR >::PRMAttribute(), gum::prm::PRMClass< GUM_SCALAR >::PRMClass(), gum::prm::PRMClass< GUM_SCALAR >::PRMClass(), gum::prm::PRMClass< GUM_SCALAR >::PRMClass(), gum::prm::PRMClass< GUM_SCALAR >::PRMClass(), gum::prm::PRMClassElement< GUM_SCALAR >::PRMClassElement(), gum::prm::PRMClassElement< GUM_SCALAR >::PRMClassElement(), gum::prm::PRMClassElementContainer< GUM_SCALAR >::PRMClassElementContainer(), gum::prm::PRMFormAttribute< GUM_SCALAR >::PRMFormAttribute(), gum::prm::PRMFormAttribute< GUM_SCALAR >::PRMFormAttribute(), gum::prm::PRMFuncAttribute< GUM_SCALAR >::PRMFuncAttribute(), gum::prm::PRMInstance< GUM_SCALAR >::PRMInstance(), gum::prm::PRMInterface< GUM_SCALAR >::PRMInterface(), gum::prm::PRMInterface< GUM_SCALAR >::PRMInterface(), gum::prm::PRMInterface< GUM_SCALAR >::PRMInterface(), PRMObject(), gum::prm::PRMParameter< GUM_SCALAR >::PRMParameter(), gum::prm::PRMParameter< GUM_SCALAR >::PRMParameter(), gum::prm::PRMReferenceSlot< GUM_SCALAR >::PRMReferenceSlot(), gum::prm::PRMScalarAttribute< GUM_SCALAR >::PRMScalarAttribute(), gum::prm::PRMSlotChain< GUM_SCALAR >::PRMSlotChain(), gum::prm::PRMSlotChain< GUM_SCALAR >::PRMSlotChain(), gum::prm::PRMSlotChain< GUM_SCALAR >::PRMSlotChain(), gum::prm::PRMSystem< GUM_SCALAR >::PRMSystem(), gum::prm::__print_attribute__(), gum::prm::__print_instance__(), gum::prm::SVE< GUM_SCALAR >::_addDelayedVariable_(), gum::prm::PRMClass< GUM_SCALAR >::_addIOInterfaceFlags_(), gum::prm::PRMFactory< GUM_SCALAR >::_addParent_(), gum::prm::PRMInstance< GUM_SCALAR >::_addReferingInstance_(), gum::prm::PRMClass< GUM_SCALAR >::_checkInterface_(), gum::prm::PRMFactory< GUM_SCALAR >::_checkInterfaceImplementation_(), gum::prm::PRMClass< GUM_SCALAR >::_checkInterfaces_(), gum::prm::o3prm::O3ClassFactory< GUM_SCALAR >::_checkRawCPT_(), gum::prm::PRMClass< GUM_SCALAR >::_checkRefInterface_(), gum::prm::PRMClass< GUM_SCALAR >::_checkRefInterfaces_(), gum::prm::o3prm::O3ClassFactory< GUM_SCALAR >::_checkRuleCPTSumsTo1_(), gum::prm::PRMInstance< GUM_SCALAR >::_copyAggregates_(), gum::prm::PRMInstance< GUM_SCALAR >::_copyAttribute_(), gum::prm::PRMSlotChain< GUM_SCALAR >::_copyLastElt_(), gum::prm::PRMSystem< GUM_SCALAR >::_groundAgg_(), gum::prm::PRMSystem< GUM_SCALAR >::_groundRef_(), gum::prm::PRMSystem< GUM_SCALAR >::_groundTensor_(), gum::prm::PRMSystem< double >::_groundTensor_(), gum::prm::PRMClass< GUM_SCALAR >::_inheritClass_(), gum::prm::PRMClass< GUM_SCALAR >::_overloadAttribute_(), gum::prm::PRMInterface< GUM_SCALAR >::_overloadAttribute_(), gum::prm::PRMClass< GUM_SCALAR >::_overloadParameter_(), gum::prm::PRMClass< GUM_SCALAR >::_overloadReference_(), gum::prm::PRMInterface< GUM_SCALAR >::_overloadReferenceSlot_(), gum::prm::gspan::StrictSearch< GUM_SCALAR >::_str_(), gum::prm::gspan::StrictSearch< GUM_SCALAR >::_str_(), gum::prm::gspan::StrictSearch< GUM_SCALAR >::_str_(), gum::prm::StructuredInference< GUM_SCALAR >::_str_(), gum::prm::StructuredInference< GUM_SCALAR >::_str_(), gum::prm::StructuredInference< GUM_SCALAR >::_str_(), gum::prm::PRMClass< GUM_SCALAR >::add(), gum::prm::PRMInterface< GUM_SCALAR >::add(), gum::prm::PRMSystem< GUM_SCALAR >::add(), gum::prm::PRMFactory< GUM_SCALAR >::addAggregator(), gum::prm::PRMFormAttribute< GUM_SCALAR >::addParent(), gum::prm::PRMScalarAttribute< GUM_SCALAR >::addParent(), gum::prm::PRMClassElement< GUM_SCALAR >::cast(), gum::prm::PRMClass< GUM_SCALAR >::completeInheritance(), gum::prm::PRMFormAttribute< GUM_SCALAR >::copy(), gum::prm::PRMScalarAttribute< GUM_SCALAR >::copy(), gum::prm::PRMClassElementContainer< GUM_SCALAR >::exists(), gum::prm::PRMInstance< GUM_SCALAR >::exists(), gum::prm::PRMSystem< GUM_SCALAR >::exists(), gum::prm::o3prmr::O3prmrInterpreter::findAttributeName(), gum::prm::o3prmr::O3prmrInterpreter::findInstanceName(), gum::prm::PRMClass< GUM_SCALAR >::get(), gum::prm::PRMClass< GUM_SCALAR >::get(), gum::prm::PRMClassElementContainer< GUM_SCALAR >::get(), gum::prm::PRMClassElementContainer< GUM_SCALAR >::get(), gum::prm::PRMInstance< GUM_SCALAR >::get(), gum::prm::PRMInstance< GUM_SCALAR >::get(), gum::prm::PRMInterface< GUM_SCALAR >::get(), gum::prm::PRMInterface< GUM_SCALAR >::get(), gum::prm::PRMSystem< GUM_SCALAR >::get(), gum::prm::PRMSystem< GUM_SCALAR >::get(), gum::prm::PRMSystem< GUM_SCALAR >::getArray(), gum::prm::PRMSystem< GUM_SCALAR >::getArrayType(), gum::prm::PRMSystem< GUM_SCALAR >::getArrayType(), gum::prm::PRMAggregate< GUM_SCALAR >::getCastDescendant(), gum::prm::PRMFormAttribute< GUM_SCALAR >::getCastDescendant(), gum::prm::PRMScalarAttribute< GUM_SCALAR >::getCastDescendant(), gum::prm::PRMSystem< GUM_SCALAR >::groundedBN(), gum::prm::PRMClass< GUM_SCALAR >::inheritAggregates(), gum::prm::PRMSystem< GUM_SCALAR >::isArray(), gum::prm::PRMClass< GUM_SCALAR >::isCastDescendant(), gum::prm::PRMSystem< GUM_SCALAR >::isInstance(), name(), gum::prm::PRMType::name(), gum::prm::PRMFormAttribute< GUM_SCALAR >::newFactory(), gum::prm::PRMScalarAttribute< GUM_SCALAR >::newFactory(), operator!=(), operator<<(), gum::prm::PRMClass< GUM_SCALAR >::operator=(), operator==(), gum::prm::PRMType::operator==(), gum::prm::PRMClass< GUM_SCALAR >::operator[](), gum::prm::PRMClass< GUM_SCALAR >::operator[](), gum::prm::PRMClassElementContainer< GUM_SCALAR >::operator[](), gum::prm::PRMClassElementContainer< GUM_SCALAR >::operator[](), gum::prm::PRMInterface< GUM_SCALAR >::operator[](), gum::prm::PRMInterface< GUM_SCALAR >::operator[](), gum::prm::PRMClass< GUM_SCALAR >::overload(), gum::prm::PRMInterface< GUM_SCALAR >::overload(), gum::prm::PRMClassElementContainer< GUM_SCALAR >::PRMClassElementContainterConstIterator, gum::prm::PRMFormAttribute< GUM_SCALAR >::setAsCastDescendant(), gum::prm::PRMScalarAttribute< GUM_SCALAR >::setAsCastDescendant(), gum::prm::PRMClassElementContainer< GUM_SCALAR >::setInputNode(), gum::prm::PRMClassElementContainer< GUM_SCALAR >::setOutputNode(), gum::prm::PRMFactory< GUM_SCALAR >::startClass(), gum::prm::PRMFactory< GUM_SCALAR >::startInterface(), and gum::prm::PRMFactory< GUM_SCALAR >::startSystem().
|
inherited |
|
overridevirtualinherited |
See gum::PRMClassElement::elt_type().
Implements gum::prm::PRMAttribute< GUM_SCALAR >.
Definition at line 91 of file PRMScalarAttribute_tpl.h.
References PRMScalarAttribute(), cpf(), gum::prm::PRMObject::name(), and type().
|
overridevirtualinherited |
Implements gum::prm::PRMObject.
Definition at line 78 of file PRMClassElement_tpl.h.
References gum::prm::PRMObject::CLASS_ELT.
To PRMObject are equal if they have the same name (which is unique).
Definition at line 69 of file PRMObject_inl.h.
References PRMObject(), _name_, and name().
|
protected |
Copy operator. Don't use it.
Definition at line 84 of file PRMFuncAttribute_tpl.h.
References PRMFuncAttribute(), and GUM_ERROR.
To PRMObject are equal if they have the same name (which is unique).
Definition at line 65 of file PRMObject_inl.h.
References PRMObject(), _name_, and name().
|
virtualinherited |
Set this as overload of source (necessayr to preserver internal pointers for MultiDims).
Definition at line 74 of file PRMAttribute_tpl.h.
References PRMAttribute(), and type_().
Referenced by gum::prm::PRMClass< GUM_SCALAR >::_overloadAttribute_(), and gum::prm::PRMInterface< GUM_SCALAR >::_overloadAttribute_().
|
staticinherited |
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 73 of file PRMObject_inl.h.
Referenced by gum::prm::PRMAggregate< GUM_SCALAR >::PRMAggregate(), gum::prm::PRMAggregate< GUM_SCALAR >::PRMAggregate(), gum::prm::PRMFormAttribute< GUM_SCALAR >::PRMFormAttribute(), gum::prm::PRMReferenceSlot< GUM_SCALAR >::PRMReferenceSlot(), gum::prm::PRMScalarAttribute< GUM_SCALAR >::PRMScalarAttribute(), gum::prm::PRMSlotChain< GUM_SCALAR >::PRMSlotChain(), gum::prm::PRMClassElement< GUM_SCALAR >::cast(), and gum::prm::decomposePath().
|
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 88 of file PRMClassElement_tpl.h.
References safeName_.
Referenced by gum::prm::__print_attribute__(), gum::prm::PRMClass< GUM_SCALAR >::_addCastDescendants_(), gum::prm::PRMClass< GUM_SCALAR >::_addCastDescendants_(), gum::prm::PRMInterface< GUM_SCALAR >::_addCastDescendants_(), gum::prm::PRMFactory< GUM_SCALAR >::_addParent_(), gum::prm::PRMInstance< GUM_SCALAR >::_copyAttributeCPF_(), gum::prm::SVED< GUM_SCALAR >::_getAggTensor_(), gum::prm::PRMSystem< GUM_SCALAR >::_groundRef_(), gum::prm::PRMSystem< GUM_SCALAR >::_groundTensor_(), gum::prm::PRMClass< GUM_SCALAR >::_inheritClass_(), gum::prm::PRMClass< GUM_SCALAR >::_overloadAggregate_(), gum::prm::PRMClass< GUM_SCALAR >::_overloadAttribute_(), gum::prm::PRMInterface< GUM_SCALAR >::_overloadAttribute_(), gum::prm::PRMClass< GUM_SCALAR >::_overloadParameter_(), gum::prm::PRMClass< GUM_SCALAR >::_overloadReference_(), gum::prm::PRMInterface< GUM_SCALAR >::_overloadReferenceSlot_(), gum::prm::gspan::StrictSearch< GUM_SCALAR >::_str_(), gum::prm::gspan::StrictSearch< GUM_SCALAR >::_str_(), gum::prm::StructuredInference< GUM_SCALAR >::_str_(), gum::prm::StructuredInference< GUM_SCALAR >::_str_(), gum::prm::PRMClass< GUM_SCALAR >::add(), gum::prm::PRMInterface< GUM_SCALAR >::add(), gum::prm::PRMFactory< GUM_SCALAR >::addAggregator(), gum::prm::PRMFactory< GUM_SCALAR >::addAttribute(), gum::prm::PRMClassElementContainer< GUM_SCALAR >::belongsTo(), gum::prm::PRMClassElementContainer< GUM_SCALAR >::getIOFlag_(), gum::prm::PRMClassElementContainer< GUM_SCALAR >::getIOFlag_(), gum::prm::PRMClass< GUM_SCALAR >::inheritAggregates(), gum::prm::PRMClassElementContainer< GUM_SCALAR >::isInnerNode(), gum::prm::PRMClassElementContainer< GUM_SCALAR >::isInputNode(), gum::prm::PRMClassElementContainer< GUM_SCALAR >::setInputNode(), gum::prm::PRMClassElementContainer< GUM_SCALAR >::setIOFlag_(), and gum::prm::PRMClassElementContainer< GUM_SCALAR >::setOutputNode().
|
overridevirtualinherited |
See gum::PRMClassElement::elt_type().
Implements gum::prm::PRMAttribute< GUM_SCALAR >.
Definition at line 200 of file PRMScalarAttribute_tpl.h.
References gum::prm::PRMAttribute< GUM_SCALAR >::PRMAttribute(), gum::prm::PRMClassElement< GUM_SCALAR >::cast(), GUM_ERROR, gum::prm::PRMObject::name(), and type().
|
protectedvirtual |
Definition at line 89 of file PRMFuncAttribute_tpl.h.
References gum::prm::PRMScalarAttribute< GUM_SCALAR >::cpf(), and GUM_ERROR.
|
virtualinherited |
Used to assign the id of this element.
Definition at line 83 of file PRMClassElement_tpl.h.
Referenced by gum::prm::PRMClass< GUM_SCALAR >::_addCastDescendants_(), gum::prm::PRMClass< GUM_SCALAR >::_addCastDescendants_(), gum::prm::PRMInterface< GUM_SCALAR >::_addCastDescendants_(), gum::prm::PRMClass< GUM_SCALAR >::_checkInterface_(), gum::prm::PRMClass< GUM_SCALAR >::_checkRefInterface_(), gum::prm::PRMSlotChain< GUM_SCALAR >::_copyLastElt_(), gum::prm::PRMClass< GUM_SCALAR >::_inheritClass_(), gum::prm::PRMClass< GUM_SCALAR >::_overloadAttribute_(), gum::prm::PRMInterface< GUM_SCALAR >::_overloadAttribute_(), gum::prm::PRMClass< GUM_SCALAR >::_overloadParameter_(), gum::prm::PRMClass< GUM_SCALAR >::_overloadReference_(), gum::prm::PRMInterface< GUM_SCALAR >::_overloadReferenceSlot_(), gum::prm::PRMClass< GUM_SCALAR >::add(), gum::prm::PRMInterface< GUM_SCALAR >::add(), and gum::prm::PRMClass< GUM_SCALAR >::inheritAggregates().
|
overridevirtualinherited |
Swap old_type with new_type in the PRMClassElement cpt.
Implements gum::prm::PRMAttribute< GUM_SCALAR >.
Definition at line 232 of file PRMScalarAttribute_tpl.h.
References _cpf_, _type_, gum::DiscreteVariable::domainSize(), gum::Instantiation::end(), GUM_ERROR, gum::Instantiation::inc(), gum::prm::PRMType::name(), gum::Instantiation::setFirst(), and gum::prm::PRMType::variable().
|
overridevirtualinherited |
See gum::PRMClassElement::type().
Implements gum::prm::PRMAttribute< GUM_SCALAR >.
Definition at line 152 of file PRMScalarAttribute_tpl.h.
References _type_.
|
overridevirtualinherited |
See gum::PRMClassElement::type().
Implements gum::prm::PRMAttribute< GUM_SCALAR >.
Definition at line 147 of file PRMScalarAttribute_tpl.h.
References _type_.
Referenced by gum::prm::PRMFuncAttribute< GUM_SCALAR >::PRMFuncAttribute(), PRMScalarAttribute(), becomeCastDescendant(), copy(), getCastDescendant(), newFactory(), and setAsCastDescendant().
|
overrideprotectedvirtualinherited |
Implements gum::prm::PRMAttribute< GUM_SCALAR >.
Definition at line 270 of file PRMScalarAttribute_tpl.h.
References _type_.
|
overrideprotectedvirtualinherited |
Implements gum::prm::PRMAttribute< GUM_SCALAR >.
Definition at line 275 of file PRMScalarAttribute_tpl.h.
References _cpf_, _type_, gum::DiscreteVariable::domainSize(), gum::Instantiation::end(), GUM_ERROR, gum::Instantiation::inc(), and gum::Instantiation::setFirst().
|
privateinherited |
A pointer on the Tensor of this attribute.
Definition at line 171 of file PRMScalarAttribute.h.
Referenced by PRMScalarAttribute(), PRMScalarAttribute(), ~PRMScalarAttribute(), addParent(), becomeCastDescendant(), copyCpf(), cpf(), swap(), and type_().
|
privateinherited |
The node's id of this element.
Definition at line 254 of file PRMClassElement.h.
Referenced by PRMClassElement(), id(), and setId().
|
privateinherited |
Definition at line 193 of file PRMObject.h.
Referenced by PRMObject(), PRMObject(), PRMObject(), name(), name(), operator!=(), operator=(), and operator==().
|
privateinherited |
The random variable type of this attribute.
Definition at line 168 of file PRMScalarAttribute.h.
Referenced by PRMScalarAttribute(), PRMScalarAttribute(), ~PRMScalarAttribute(), copyCpf(), swap(), type(), type(), type_(), and type_().
|
protectedinherited |
The safe name of this PRMClassElement.
Definition at line 250 of file PRMClassElement.h.
Referenced by gum::prm::PRMAggregate< GUM_SCALAR >::PRMAggregate(), gum::prm::PRMAggregate< GUM_SCALAR >::PRMAggregate(), gum::prm::PRMFormAttribute< GUM_SCALAR >::PRMFormAttribute(), gum::prm::PRMParameter< GUM_SCALAR >::PRMParameter(), gum::prm::PRMReferenceSlot< GUM_SCALAR >::PRMReferenceSlot(), gum::prm::PRMScalarAttribute< GUM_SCALAR >::PRMScalarAttribute(), gum::prm::PRMSlotChain< GUM_SCALAR >::PRMSlotChain(), and safeName().