aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
gum::prm::PRMSlotChain< GUM_SCALAR > Class Template Reference

A PRMSlotChain represents a sequence of gum::prm::PRMClassElement<GUM_SCALAR> where the n-1 first gum::prm::PRMClassElement<GUM_SCALAR> are gum::prm::PRMReferenceSlot and the last gum::prm::PRMClassElement<GUM_SCALAR> an gum::prm::PRMAttribute or an gum::prm::PRMAggregate. More...

#include <PRMSlotChain.h>

Inheritance diagram for gum::prm::PRMSlotChain< GUM_SCALAR >:
Collaboration diagram for gum::prm::PRMSlotChain< GUM_SCALAR >:

Public Member Functions

Constructors & destructor
 PRMSlotChain (const std::string &name, const Sequence< PRMClassElement< GUM_SCALAR > * > &chain)
 Default constructor.
 PRMSlotChain (Sequence< PRMClassElement< GUM_SCALAR > * > *chain, const std::string &name)
 Tweak constructor.
 PRMSlotChain (const PRMSlotChain< GUM_SCALAR > &source)
 Copy constructor.
virtual ~PRMSlotChain ()
 Destructor.
Getters & setters
virtual PRMClassElement< GUM_SCALAR >::ClassElementType elt_type () const
 See gum::PRMClassElement<GUM_SCALAR>::elt_type().
virtual PRMTypetype ()
 This is similar to the following call: this->lastElt().type().
virtual const PRMTypetype () const
 This is similar to the following call: this->lastElt().type().
virtual const Tensor< GUM_SCALAR > & cpf () const
 This is similar to the following call: this->lastElt().cpf().
bool isMultiple () const
 Return true if this slot chain contains at least one multiple reference slot.
PRMClassElementContainer< GUM_SCALAR > & end ()
 Returns the PRMClassElement<GUM_SCALAR>Container over which this slot chain ends.
const PRMClassElementContainer< GUM_SCALAR > & end () const
 Returns the PRMClassElement<GUM_SCALAR>Container over which this slot chain ends.
PRMClassElement< GUM_SCALAR > & lastElt ()
 Returns the last element of the slot chain, typically this is an gum::PRMAttribute or a gum::PRMAggregate.
const PRMClassElement< GUM_SCALAR > & lastElt () const
 Returns the last element of the slot chain, typically this is an gum::PRMAttribute or a gum::PRMAggregate.
Sequence< PRMClassElement< GUM_SCALAR > * > & chain ()
 Return the sequence representing the chain of elements in this PRMSlotChain.
const Sequence< PRMClassElement< GUM_SCALAR > * > & chain () const
 Return the sequence representing the chain of elements in this PRMSlotChain.
virtual void addParent (const PRMClassElement< GUM_SCALAR > &elt)
 See gum::PRMClassElement<GUM_SCALAR>::addParent_().
virtual void addChild (const PRMClassElement< GUM_SCALAR > &elt)
 See gum::PRMClassElement<GUM_SCALAR>::addChild_().
virtual PRMAttribute< GUM_SCALAR > * getCastDescendant () const
 Raise a gum::OperationNotAllowed exception See gum::PRMClassElement<GUM_SCALAR>::getCastDescendant().
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.
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.
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 (const std::string &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 Attributes

std::string safeName_
 The safe name of this PRMClassElement.

Private Member Functions

PRMSlotChainoperator= (const PRMSlotChain &source)
 Copy operator. Don't use it.

Private Attributes

NodeId _id_
 The node's id of this element.
Private members.
std::string _name_

Private members of PRMSlotChain.

Sequence< PRMClassElement< GUM_SCALAR > * > * _chain_
 The sequence of PRMClassElement<GUM_SCALAR> composing the slot chain.
bool _isMultiple_
 Flag indicating if this slot chain is multiple or not.
void _copyLastElt_ ()
 Copy the last element, this prevents unwanted DuplicateElement exceptions.

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.

Detailed Description

template<typename GUM_SCALAR>
class gum::prm::PRMSlotChain< GUM_SCALAR >

A PRMSlotChain represents a sequence of gum::prm::PRMClassElement<GUM_SCALAR> where the n-1 first gum::prm::PRMClassElement<GUM_SCALAR> are gum::prm::PRMReferenceSlot and the last gum::prm::PRMClassElement<GUM_SCALAR> an gum::prm::PRMAttribute or an gum::prm::PRMAggregate.

A PRMSlotChain behaves as an gum::prm::PRMAttribute or an gum::prm::PRMAggregate (depending the gum::prm::PRMClassElement<GUM_SCALAR> type of it's last element) regarding the following methods: gum::prm::PRMClassElement<GUM_SCALAR>::type() and gum::prm::PRMClassElement<GUM_SCALAR>::cpf().

Definition at line 91 of file PRMSlotChain.h.

Member Enumeration Documentation

◆ ClassElementType

template<typename GUM_SCALAR>
enum gum::prm::PRMClassElement::ClassElementType
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.

◆ prm_type

enum class gum::prm::PRMObject::prm_type : char
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 88 of file PRMObject.h.

88: char { ALL, CLASS, PRM_INTERFACE, CLASS_ELT, TYPE, SYSTEM, INSTANCE };

Constructor & Destructor Documentation

◆ PRMSlotChain() [1/3]

template<typename GUM_SCALAR>
gum::prm::PRMSlotChain< GUM_SCALAR >::PRMSlotChain ( const std::string & name,
const Sequence< PRMClassElement< GUM_SCALAR > * > & chain )

Default constructor.

Chain's n-1 first elements must be PRMReferenceSlot and the last element must either be an PRMAttribute or an PRMAggregate.

Warning: the last element in chain is copied !

Parameters
nameThe name of this PRMSlotChain.
chainThe chain of gum::prm::PRMClassElement<GUM_SCALAR> in this PRMSlotChain.
Exceptions
OperationNotAllowedRaised if the chain contains less than two PRMClassElement<GUM_SCALAR>.
WrongClassElement<GUM_SCALAR>Raised contains invalid PRMClassElement<GUM_SCALAR>.

Definition at line 55 of file PRMSlotChain_tpl.h.

57 :
61
62 if (_chain_->size() < 2) {
63 GUM_ERROR(OperationNotAllowed, "chain must contain at least two ClassElement")
64 }
65
66 for (Size i = 0; i < _chain_->size() - 1; ++i) {
67 if (_chain_->atPos(i)->elt_type() != PRMClassElement< GUM_SCALAR >::prm_refslot) {
68 GUM_ERROR(WrongClassElement, "illegal ClassElement in chain")
69 } else {
72 || static_cast< PRMReferenceSlot< GUM_SCALAR >* >(_chain_->atPos(i))->isArray();
73 }
74 }
75
77
78 this->safeName_
79 = PRMObject::LEFT_CAST() + lastElt().type().name() + PRMObject::RIGHT_CAST() + name;
80 this->lastElt().type().variable().setName(name);
81 }
PRMClassElement(const std::string &name)
Default constructor of a PRMClassElement.
std::string safeName_
The safe name of this PRMClassElement.
const std::string & name() const
Returns the name of this object.
static std::string LEFT_CAST()
Enumeration of the different types of objects handled by a PRM.
Definition PRMObject.h:90
static std::string RIGHT_CAST()
Enumeration of the different types of objects handled by a PRM.
Definition PRMObject.h:92
A PRMSlotChain represents a sequence of gum::prm::PRMClassElement<GUM_SCALAR> where the n-1 first gum...
PRMSlotChain(const std::string &name, const Sequence< PRMClassElement< GUM_SCALAR > * > &chain)
Default constructor.
bool _isMultiple_
Flag indicating if this slot chain is multiple or not.
void _copyLastElt_()
Copy the last element, this prevents unwanted DuplicateElement exceptions.
Sequence< PRMClassElement< GUM_SCALAR > * > & chain()
Return the sequence representing the chain of elements in this PRMSlotChain.
Sequence< PRMClassElement< GUM_SCALAR > * > * _chain_
The sequence of PRMClassElement<GUM_SCALAR> composing the slot chain.
PRMClassElement< GUM_SCALAR > & lastElt()
Returns the last element of the slot chain, typically this is an gum::PRMAttribute or a gum::PRMAggre...
#define GUM_ERROR(type, msg)
Definition exceptions.h:72

References gum::prm::PRMClassElement< GUM_SCALAR >::PRMClassElement(), PRMSlotChain(), _chain_, _copyLastElt_(), _isMultiple_, chain(), GUM_ERROR, gum::prm::PRMReferenceSlot< GUM_SCALAR >::isArray(), lastElt(), gum::prm::PRMObject::LEFT_CAST(), gum::prm::PRMObject::name(), gum::prm::PRMClassElement< GUM_SCALAR >::prm_refslot, gum::prm::PRMObject::RIGHT_CAST(), and gum::prm::PRMClassElement< GUM_SCALAR >::safeName_.

Referenced by PRMSlotChain(), PRMSlotChain(), PRMSlotChain(), ~PRMSlotChain(), and operator=().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PRMSlotChain() [2/3]

template<typename GUM_SCALAR>
gum::prm::PRMSlotChain< GUM_SCALAR >::PRMSlotChain ( Sequence< PRMClassElement< GUM_SCALAR > * > * chain,
const std::string & name )

Tweak constructor.

Chain's n-1 first elements must be PRMReferenceSlot and the last element must either be an PRMAttribute or an PRMAggregate.

Warning: the last element in chain is copied !

Parameters
nameThe name of this PRMSlotChain.
chainThe chain given to this PRMSlotChain, it is deleted when PRMSlotChain::~PRMSlotChain() is called.
Exceptions
OperationNotAllowedRaised if the chain contains less than two PRMClassElement<GUM_SCALAR>.
WrongClassElement<GUM_SCALAR>Raised contains invalid PRMClassElement<GUM_SCALAR>.

Definition at line 86 of file PRMSlotChain_tpl.h.

88 // No need to
89 // GUM_CONSTRUCTOR(PRMSlotChain);
90
91 // if ( _chain_->size() < 2) {
92 // GUM_ERROR(OperationNotAllowed,
93 // "chain must containt at least two PRMClassElement")
94 //}
95
96 // for (Size i = 0; i < _chain_->size() - 1; ++i) {
97 // if (not( _chain_->atPos(i)->elt_type() !=
98 // PRMClassElement<GUM_SCALAR>::prm_refslot)) {
99 // GUM_ERROR(WrongClassElement, "illegal PRMClassElement in chain")
100 // } else {
101 // _isMultiple_ =
102 // _isMultiple_ or
103 // static_cast<PRMReferenceSlot<GUM_SCALAR>
104 // *>( _chain_->atPos(i))->isArray();
105 // }
106 //}
107
108 // __copyLastElt();
109 // this->safeName_ = PRMObject::LEFT_CAST() + lastElt().type().name() +
110 // PRMObject::RIGHT_CAST() + name;
111 }

References gum::prm::PRMClassElement< GUM_SCALAR >::PRMClassElement(), PRMSlotChain(), chain(), and gum::prm::PRMObject::name().

Here is the call graph for this function:

◆ PRMSlotChain() [3/3]

template<typename GUM_SCALAR>
gum::prm::PRMSlotChain< GUM_SCALAR >::PRMSlotChain ( const PRMSlotChain< GUM_SCALAR > & source)

Copy constructor.

This creates a copy of the slot chain.

Definition at line 158 of file PRMSlotChain_tpl.h.

158 :
164 }
bool isMultiple() const
Return true if this slot chain contains at least one multiple reference slot.

References gum::prm::PRMClassElement< GUM_SCALAR >::PRMClassElement(), PRMSlotChain(), _chain_, _copyLastElt_(), _isMultiple_, chain(), isMultiple(), and gum::prm::PRMObject::name().

Here is the call graph for this function:

◆ ~PRMSlotChain()

template<typename GUM_SCALAR>
gum::prm::PRMSlotChain< GUM_SCALAR >::~PRMSlotChain ( )
virtual

Destructor.

Definition at line 151 of file PRMSlotChain_tpl.h.

151 {
153 delete _chain_->back();
154 delete _chain_;
155 }

References PRMSlotChain(), and _chain_.

Here is the call graph for this function:

Member Function Documentation

◆ _copyLastElt_()

template<typename GUM_SCALAR>
void gum::prm::PRMSlotChain< GUM_SCALAR >::_copyLastElt_ ( )
private

Copy the last element, this prevents unwanted DuplicateElement exceptions.

Definition at line 114 of file PRMSlotChain_tpl.h.

114 {
116
117 switch (_chain_->back()->elt_type()) {
119 auto old_attr = static_cast< const PRMAttribute< GUM_SCALAR >* >(_chain_->back());
120
122 for (auto var: old_attr->cpf().variablesSequence()) {
123 if (var != &(old_attr->type().variable())) { bij.insert(var, var); }
124 }
125
126 new_elt = old_attr->copy(bij);
127 break;
128 }
129
132 = static_cast< const PRMAggregate< GUM_SCALAR >* >(_chain_->back());
134 c_agg->agg_type(),
135 c_agg->type(),
136 c_agg->id());
137 new_elt = agg;
138 break;
139 }
140
141 default : {
142 GUM_ERROR(WrongClassElement, "last element of chain is not valid")
143 }
144 }
145
146 new_elt->setId(_chain_->back()->id());
147 _chain_->setAtPos(_chain_->size() - 1, new_elt);
148 }
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()
This is similar to the following call: this->lastElt().type().
virtual const Tensor< GUM_SCALAR > & cpf() const
This is similar to the following call: this->lastElt().cpf().
DiscreteVariable & variable()
Return a reference on the DiscreteVariable contained in this.
Definition PRMType_inl.h:64

Referenced by PRMSlotChain(), and PRMSlotChain().

Here is the caller graph for this function:

◆ addChild()

template<typename GUM_SCALAR>
INLINE void gum::prm::PRMSlotChain< GUM_SCALAR >::addChild ( const PRMClassElement< GUM_SCALAR > & elt)
virtual

See gum::PRMClassElement<GUM_SCALAR>::addChild_().

Implements gum::prm::PRMClassElement< GUM_SCALAR >.

Definition at line 230 of file PRMSlotChain_tpl.h.

230{}

References gum::prm::PRMClassElement< GUM_SCALAR >::PRMClassElement().

Here is the call graph for this function:

◆ addParent()

template<typename GUM_SCALAR>
INLINE void gum::prm::PRMSlotChain< GUM_SCALAR >::addParent ( const PRMClassElement< GUM_SCALAR > & elt)
virtual

See gum::PRMClassElement<GUM_SCALAR>::addParent_().

Implements gum::prm::PRMClassElement< GUM_SCALAR >.

Definition at line 227 of file PRMSlotChain_tpl.h.

227{}

References gum::prm::PRMClassElement< GUM_SCALAR >::PRMClassElement().

Here is the call graph for this function:

◆ cast()

template<typename GUM_SCALAR>
INLINE std::string gum::prm::PRMClassElement< GUM_SCALAR >::cast ( const PRMType & t) const
virtualinherited

Returns the name of the cast descendant with PRMType t of this PRMClassElement.

Parameters
tThe type in which we want to cast this PRMClassElement.
Exceptions
OperationNotAllowedIf the cast is impossible.

Definition at line 92 of file PRMClassElement_tpl.h.

92 {
93 if (type().isSubTypeOf(t)) {
95 } else {
96 GUM_ERROR(OperationNotAllowed, "illegal cast")
97 }
98 }
Abstract class representing an element of PRM class.
virtual PRMType & type()=0
Return a reference over the gum::PRMType of this class element.

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::PRMFormAttribute< GUM_SCALAR >::getCastDescendant(), gum::prm::PRMScalarAttribute< GUM_SCALAR >::getCastDescendant(), gum::prm::PRMFormAttribute< GUM_SCALAR >::setAsCastDescendant(), and gum::prm::PRMScalarAttribute< GUM_SCALAR >::setAsCastDescendant().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ chain() [1/2]

template<typename GUM_SCALAR>
INLINE Sequence< PRMClassElement< GUM_SCALAR > * > & gum::prm::PRMSlotChain< GUM_SCALAR >::chain ( )

Return the sequence representing the chain of elements in this PRMSlotChain.

Definition at line 216 of file PRMSlotChain_tpl.h.

216 {
217 return *_chain_;
218 }

References _chain_.

Referenced by PRMSlotChain(), PRMSlotChain(), PRMSlotChain(), gum::prm::PRMInstance< GUM_SCALAR >::_instantiateSlotChain_(), and gum::prm::PRMFactory< GUM_SCALAR >::_retrieveInputs_().

Here is the caller graph for this function:

◆ chain() [2/2]

template<typename GUM_SCALAR>
INLINE const Sequence< PRMClassElement< GUM_SCALAR > * > & gum::prm::PRMSlotChain< GUM_SCALAR >::chain ( ) const

Return the sequence representing the chain of elements in this PRMSlotChain.

Definition at line 222 of file PRMSlotChain_tpl.h.

222 {
223 return *_chain_;
224 }

References _chain_.

◆ cpf()

template<typename GUM_SCALAR>
INLINE const Tensor< GUM_SCALAR > & gum::prm::PRMSlotChain< GUM_SCALAR >::cpf ( ) const
virtual

This is similar to the following call: this->lastElt().cpf().

Implements gum::prm::PRMClassElement< GUM_SCALAR >.

Definition at line 189 of file PRMSlotChain_tpl.h.

189 {
190 return _chain_->back()->cpf();
191 }

◆ elt_type()

template<typename GUM_SCALAR>
INLINE PRMClassElement< GUM_SCALAR >::ClassElementType gum::prm::PRMSlotChain< GUM_SCALAR >::elt_type ( ) const
virtual

See gum::PRMClassElement<GUM_SCALAR>::elt_type().

Implements gum::prm::PRMClassElement< GUM_SCALAR >.

Definition at line 174 of file PRMSlotChain_tpl.h.

174 {
175 return this->prm_slotchain;
176 }

References gum::prm::PRMClassElement< GUM_SCALAR >::prm_slotchain.

◆ end() [1/2]

template<typename GUM_SCALAR>
INLINE PRMClassElementContainer< GUM_SCALAR > & gum::prm::PRMSlotChain< GUM_SCALAR >::end ( )

Returns the PRMClassElement<GUM_SCALAR>Container over which this slot chain ends.

Definition at line 194 of file PRMSlotChain_tpl.h.

194 {
195 return static_cast< PRMReferenceSlot< GUM_SCALAR >* >(_chain_->atPos(_chain_->size() - 2))
196 ->slotType();
197 }

References _chain_, and gum::prm::PRMReferenceSlot< GUM_SCALAR >::slotType().

Referenced by gum::prm::ClassDependencyGraph< GUM_SCALAR >::_addArcs_(), and gum::prm::PRMClass< GUM_SCALAR >::addArc().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ end() [2/2]

template<typename GUM_SCALAR>
INLINE const PRMClassElementContainer< GUM_SCALAR > & gum::prm::PRMSlotChain< GUM_SCALAR >::end ( ) const

Returns the PRMClassElement<GUM_SCALAR>Container over which this slot chain ends.

Definition at line 200 of file PRMSlotChain_tpl.h.

200 {
201 return static_cast< PRMReferenceSlot< GUM_SCALAR >* >(_chain_->atPos(_chain_->size() - 2))
202 ->slotType();
203 }

◆ enum2str() [1/2]

template<typename GUM_SCALAR>
std::string gum::prm::PRMClassElement< GUM_SCALAR >::enum2str ( ClassElementType type)
inlinestaticinherited

Returns true if obj_ptr is of type PRMReferenceSlot.

Definition at line 117 of file PRMClassElement.h.

117 {
118 switch (type) {
119 case prm_attribute : return "prm_attribute";
120
121 case prm_aggregate : return "prm_aggregate";
122
123 case prm_refslot : return "prm_refslot";
124
125 case prm_slotchain : return "prm_slotchain";
126
127 case prm_parameter : return "prm_parameter";
128
129 default : return "unknown";
130 }
131 }

References prm_aggregate, prm_attribute, prm_parameter, prm_refslot, prm_slotchain, and type().

Here is the call graph for this function:

◆ enum2str() [2/2]

std::string gum::prm::PRMObject::enum2str ( prm_type type)
inlinestaticinherited

Returns the string representation of a PRMObject.

Definition at line 95 of file PRMObject.h.

95 {
96 switch (type) {
97 case prm_type::CLASS : return "PRMType::CLASS";
98
99 case prm_type::CLASS_ELT : return "PRMType::CLASS_ELT";
100
101 case prm_type::TYPE : return "PRMType::TYPE";
102
103 case prm_type::SYSTEM : return "PRMType::SYSTEM";
104
105 case prm_type::INSTANCE : return "PRMType::INSTANCE";
106
107 case prm_type::PRM_INTERFACE : return "PRMType::PRM_INTERFACE";
108
109 default : return "unknown";
110 }
111 }

References CLASS, CLASS_ELT, INSTANCE, PRM_INTERFACE, SYSTEM, and TYPE.

Referenced by gum::prm::operator<<().

Here is the caller graph for this function:

◆ getCastDescendant()

template<typename GUM_SCALAR>
INLINE PRMAttribute< GUM_SCALAR > * gum::prm::PRMSlotChain< GUM_SCALAR >::getCastDescendant ( ) const
virtual

Raise a gum::OperationNotAllowed exception See gum::PRMClassElement<GUM_SCALAR>::getCastDescendant().

Implements gum::prm::PRMClassElement< GUM_SCALAR >.

Definition at line 238 of file PRMSlotChain_tpl.h.

238 {
239 GUM_ERROR(OperationNotAllowed, "This is a slotchain")
240 }

References GUM_ERROR.

◆ id()

template<typename GUM_SCALAR>
INLINE NodeId gum::prm::PRMClassElement< GUM_SCALAR >::id ( ) const
inherited

Returns the NodeId of this element in it's class DAG.

Definition at line 72 of file PRMClassElement_tpl.h.

72 {
73 return _id_;
74 }
NodeId _id_
The node's id of this element.

References _id_.

Referenced by PRMClassElement(), gum::prm::PRMSlotChain< double >::PRMSlotChain(), gum::prm::PRMClass< GUM_SCALAR >::_addCastDescendants_(), gum::prm::PRMClass< 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::SVE< GUM_SCALAR >::_getAggTensor_(), gum::prm::PRMSystem< GUM_SCALAR >::_groundRef_(), gum::prm::PRMSystem< double >::_groundTensor_(), 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::PRMClass< GUM_SCALAR >::_overloadParameter_(), gum::prm::PRMClass< GUM_SCALAR >::_overloadReference_(), gum::prm::PRMInterface< GUM_SCALAR >::_overloadReferenceSlot_(), gum::prm::PRMClass< GUM_SCALAR >::add(), gum::prm::PRMClass< GUM_SCALAR >::addArc(), gum::prm::PRMInterface< double >::addArc(), gum::prm::PRMInterface< double >::implementations(), gum::prm::PRMClass< GUM_SCALAR >::inheritAggregates(), gum::prm::PRMClass< GUM_SCALAR >::overload(), gum::prm::SVE< GUM_SCALAR >::posterior_(), gum::prm::SVED< GUM_SCALAR >::posterior_(), setId(), and gum::prm::PRMFactory< GUM_SCALAR >::startAttribute().

Here is the caller graph for this function:

◆ isAggregate()

template<typename GUM_SCALAR>
INLINE bool gum::prm::PRMClassElement< GUM_SCALAR >::isAggregate ( const PRMClassElement< GUM_SCALAR > & elt)
inlinestaticinherited

Return true if obj is of type PRMAggregate.

Definition at line 144 of file PRMClassElement.h.

144 {
145 return elt.elt_type() == prm_aggregate;
146 }
virtual ClassElementType elt_type() const =0
Return the type of class element this object is.

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isAttribute()

◆ isClass()

INLINE bool gum::prm::PRMObject::isClass ( const PRMObject & obj)
inlinestaticinherited

Returns true if obj_ptr is of type Class.

Definition at line 114 of file PRMObject.h.

114{ return obj.obj_type() == prm_type::CLASS; }

References PRMObject(), CLASS, and obj_type().

Referenced by gum::prm::PRMClass< GUM_SCALAR >::scope(), and gum::prm::PRMFactory< GUM_SCALAR >::startAttribute().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isInstance()

INLINE bool gum::prm::PRMObject::isInstance ( const PRMObject & obj)
inlinestaticinherited

Returns true if obj_ptr is of type PRMInstance.

Definition at line 122 of file PRMObject.h.

122 {
123 return obj.obj_type() == prm_type::INSTANCE;
124 }

References PRMObject(), INSTANCE, and obj_type().

Here is the call graph for this function:

◆ isInterface()

INLINE bool gum::prm::PRMObject::isInterface ( const PRMObject & obj)
inlinestaticinherited

Returns true if obj_ptr is of type PRMInterface.

Definition at line 117 of file PRMObject.h.

117 {
118 return obj.obj_type() == prm_type::PRM_INTERFACE;
119 }

References PRMObject(), obj_type(), and PRM_INTERFACE.

Here is the call graph for this function:

◆ isMultiple()

template<typename GUM_SCALAR>
INLINE bool gum::prm::PRMSlotChain< GUM_SCALAR >::isMultiple ( ) const

Return true if this slot chain contains at least one multiple reference slot.

Definition at line 233 of file PRMSlotChain_tpl.h.

233 {
234 return _isMultiple_;
235 }

References _isMultiple_.

Referenced by PRMSlotChain(), and gum::prm::PRMFactory< GUM_SCALAR >::_addParent_().

Here is the caller graph for this function:

◆ isParameter()

template<typename GUM_SCALAR>
INLINE bool gum::prm::PRMClassElement< GUM_SCALAR >::isParameter ( const PRMClassElement< GUM_SCALAR > & elt)
inlinestaticinherited

Return true if obj is of type PRMParameter.

Definition at line 154 of file PRMClassElement.h.

154 {
155 return elt.elt_type() == prm_parameter;
156 }

References PRMClassElement(), elt_type(), and prm_parameter.

Referenced by gum::prm::o3prm::O3SystemFactory< GUM_SCALAR >::_checkParameters_(), and gum::prm::PRMClass< GUM_SCALAR >::add().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isReferenceSlot()

template<typename GUM_SCALAR>
INLINE bool gum::prm::PRMClassElement< GUM_SCALAR >::isReferenceSlot ( const PRMClassElement< GUM_SCALAR > & elt)
inlinestaticinherited

Returns true if obj_ptr is of type PRMReferenceSlot.

Definition at line 134 of file PRMClassElement.h.

134 {
135 return elt.elt_type() == prm_refslot;
136 }

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_(), and gum::prm::PRMFactory< GUM_SCALAR >::setReferenceSlot().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isSlotChain()

template<typename GUM_SCALAR>
INLINE bool gum::prm::PRMClassElement< GUM_SCALAR >::isSlotChain ( const PRMClassElement< GUM_SCALAR > & elt)
inlinestaticinherited

Return true if obj is of type PRMSlotChain.

Definition at line 149 of file PRMClassElement.h.

149 {
150 return elt.elt_type() == prm_slotchain;
151 }

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ lastElt() [1/2]

template<typename GUM_SCALAR>
INLINE PRMClassElement< GUM_SCALAR > & gum::prm::PRMSlotChain< GUM_SCALAR >::lastElt ( )

Returns the last element of the slot chain, typically this is an gum::PRMAttribute or a gum::PRMAggregate.

Definition at line 206 of file PRMSlotChain_tpl.h.

206 {
207 return *(_chain_->back());
208 }

References gum::prm::PRMClassElement< GUM_SCALAR >::PRMClassElement(), and _chain_.

Referenced by PRMSlotChain(), gum::prm::ClassDependencyGraph< GUM_SCALAR >::_addArcs_(), gum::prm::PRMInstance< GUM_SCALAR >::_addReferingInstance_(), gum::prm::PRMSystem< GUM_SCALAR >::_groundRef_(), gum::prm::PRMClass< GUM_SCALAR >::_overloadReference_(), gum::prm::PRMFactory< GUM_SCALAR >::_retrieveInputs_(), gum::prm::gspan::StrictSearch< GUM_SCALAR >::_str_(), gum::prm::StructuredInference< GUM_SCALAR >::_str_(), and gum::prm::PRMClass< GUM_SCALAR >::addArc().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ lastElt() [2/2]

template<typename GUM_SCALAR>
INLINE const PRMClassElement< GUM_SCALAR > & gum::prm::PRMSlotChain< GUM_SCALAR >::lastElt ( ) const

Returns the last element of the slot chain, typically this is an gum::PRMAttribute or a gum::PRMAggregate.

Definition at line 211 of file PRMSlotChain_tpl.h.

211 {
212 return *(_chain_->back());
213 }

References gum::prm::PRMClassElement< GUM_SCALAR >::PRMClassElement(), and _chain_.

Here is the call graph for this function:

◆ LEFT_CAST()

std::string gum::prm::PRMObject::LEFT_CAST ( )
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 90 of file PRMObject.h.

90{ return "("; }

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().

Here is the caller graph for this function:

◆ name() [1/2]

INLINE const std::string & gum::prm::PRMObject::name ( ) const
inherited

Returns the name of this object.

Definition at line 54 of file PRMObject_inl.h.

54{ return _name_; }
std::string _name_
Definition PRMObject.h:211

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::PRMSlotChain< double >::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::PRMSystem< GUM_SCALAR >::_groundAgg_(), gum::prm::PRMSystem< double >::_groundAgg_(), gum::prm::PRMSystem< GUM_SCALAR >::_groundRef_(), gum::prm::PRMSystem< double >::_groundTensor_(), gum::prm::PRMClass< 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::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< double >::instantiate(), 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!=(), 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::PRMClass< GUM_SCALAR >::overload(), gum::prm::PRMInterface< GUM_SCALAR >::overload(), gum::prm::PRMClassElementContainer< GUM_SCALAR >::PRMClassElementContainterConstIterator, 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().

◆ name() [2/2]

INLINE void gum::prm::PRMObject::name ( const std::string & name)
inherited

Change the name of the PRM Object.

Warning
Don't do this unless you know what you are doing !

Definition at line 58 of file PRMObject_inl.h.

58{ _name_ = name; }

References _name_, and name().

Here is the call graph for this function:

◆ obj_type()

template<typename GUM_SCALAR>
INLINE PRMObject::prm_type gum::prm::PRMClassElement< GUM_SCALAR >::obj_type ( ) const
virtualinherited
See also
gum::PRMObject::obj_type().

Implements gum::prm::PRMObject.

Definition at line 77 of file PRMClassElement_tpl.h.

77 {
79 }

References gum::prm::PRMObject::CLASS_ELT.

◆ operator!=()

INLINE bool gum::prm::PRMObject::operator!= ( const PRMObject & obj) const
inherited

To PRMObject are equal if they have the same name (which is unique).

Definition at line 66 of file PRMObject_inl.h.

66{ return _name_ != obj.name(); }

References PRMObject(), _name_, and name().

Here is the call graph for this function:

◆ operator=()

template<typename GUM_SCALAR>
PRMSlotChain< GUM_SCALAR > & gum::prm::PRMSlotChain< GUM_SCALAR >::operator= ( const PRMSlotChain< GUM_SCALAR > & source)
private

Copy operator. Don't use it.

Definition at line 168 of file PRMSlotChain_tpl.h.

168 {
169 GUM_ERROR(FatalError, "Illegal call to gum::SlotChain<GUM_SCALAR> copy constructor.")
170 }

References PRMSlotChain(), and GUM_ERROR.

Here is the call graph for this function:

◆ operator==()

INLINE bool gum::prm::PRMObject::operator== ( const PRMObject & obj) const
inherited

To PRMObject are equal if they have the same name (which is unique).

Definition at line 62 of file PRMObject_inl.h.

62{ return _name_ == obj.name(); }

References PRMObject(), _name_, and name().

Here is the call graph for this function:

◆ RIGHT_CAST()

std::string gum::prm::PRMObject::RIGHT_CAST ( )
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 92 of file PRMObject.h.

92{ return ")"; }

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().

Here is the caller graph for this function:

◆ safeName()

template<typename GUM_SCALAR>
INLINE const std::string & gum::prm::PRMClassElement< GUM_SCALAR >::safeName ( ) const
inherited

Returns the safe name of this PRMClassElement, if any.

This will only work if this PRMClassElement is an PRMAttribute or an PRMAggregate.

Returns
Returns the safe name of this PRMClassElement.
Exceptions
NotFound&Raised if this PRMClassElement does not have any safe name.

Definition at line 87 of file PRMClassElement_tpl.h.

87 {
88 return safeName_;
89 }

References safeName_.

Referenced by gum::prm::__print_attribute__(), gum::prm::PRMClass< GUM_SCALAR >::_addCastDescendants_(), gum::prm::PRMClass< 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< double >::_groundTensor_(), gum::prm::PRMClass< GUM_SCALAR >::_overloadAggregate_(), gum::prm::PRMClass< GUM_SCALAR >::_overloadAttribute_(), gum::prm::PRMClass< GUM_SCALAR >::_overloadParameter_(), gum::prm::PRMClass< GUM_SCALAR >::_overloadReference_(), 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::PRMFactory< GUM_SCALAR >::addAggregator(), gum::prm::PRMInterface< double >::addArc(), 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::PRMInterface< double >::implementations(), gum::prm::PRMClass< GUM_SCALAR >::inheritAggregates(), gum::prm::PRMClassElementContainer< GUM_SCALAR >::setInputNode(), gum::prm::PRMClassElementContainer< GUM_SCALAR >::setIOFlag_(), and gum::prm::PRMClassElementContainer< GUM_SCALAR >::setOutputNode().

Here is the caller graph for this function:

◆ setId()

◆ type() [1/2]

template<typename GUM_SCALAR>
INLINE PRMType & gum::prm::PRMSlotChain< GUM_SCALAR >::type ( )
virtual

This is similar to the following call: this->lastElt().type().

Implements gum::prm::PRMClassElement< GUM_SCALAR >.

Definition at line 179 of file PRMSlotChain_tpl.h.

179 {
180 return _chain_->back()->type();
181 }

References _chain_.

◆ type() [2/2]

template<typename GUM_SCALAR>
INLINE const PRMType & gum::prm::PRMSlotChain< GUM_SCALAR >::type ( ) const
virtual

This is similar to the following call: this->lastElt().type().

Implements gum::prm::PRMClassElement< GUM_SCALAR >.

Definition at line 184 of file PRMSlotChain_tpl.h.

184 {
185 return _chain_->back()->type();
186 }

References _chain_.

Member Data Documentation

◆ _chain_

template<typename GUM_SCALAR>
Sequence< PRMClassElement< GUM_SCALAR >* >* gum::prm::PRMSlotChain< GUM_SCALAR >::_chain_
private

The sequence of PRMClassElement<GUM_SCALAR> composing the slot chain.

Definition at line 217 of file PRMSlotChain.h.

Referenced by PRMSlotChain(), PRMSlotChain(), ~PRMSlotChain(), chain(), chain(), end(), lastElt(), lastElt(), type(), and type().

◆ _id_

template<typename GUM_SCALAR>
NodeId gum::prm::PRMClassElement< GUM_SCALAR >::_id_
privateinherited

The node's id of this element.

Definition at line 278 of file PRMClassElement.h.

Referenced by PRMClassElement(), id(), and setId().

◆ _isMultiple_

template<typename GUM_SCALAR>
bool gum::prm::PRMSlotChain< GUM_SCALAR >::_isMultiple_
private

Flag indicating if this slot chain is multiple or not.

Definition at line 220 of file PRMSlotChain.h.

Referenced by PRMSlotChain(), PRMSlotChain(), and isMultiple().

◆ _name_

std::string gum::prm::PRMObject::_name_
privateinherited

◆ safeName_


The documentation for this class was generated from the following files: