29 #ifndef GUM_SLOT_CHAIN_H 30 #define GUM_SLOT_CHAIN_H 34 #include <agrum/tools/core/sequence.h> 36 #include <agrum/tools/multidim/ICIModels/multiDimNoisyORCompound.h> 37 #include <agrum/tools/multidim/ICIModels/multiDimNoisyORNet.h> 38 #include <agrum/tools/multidim/implementations/multiDimBijArray.h> 39 #include <agrum/tools/multidim/potential.h> 41 #include <agrum/PRM/elements/PRMType.h> 42 #include <agrum/PRM/elements/PRMClassElement.h> 43 #include <agrum/PRM/elements/PRMClassElementContainer.h> 44 #include <agrum/PRM/elements/PRMAttribute.h> 45 #include <agrum/PRM/elements/PRMAggregate.h> 46 #include <agrum/PRM/elements/PRMReferenceSlot.h> 51 template <
typename GUM_SCALAR >
53 template <
typename GUM_SCALAR >
81 template <
typename GUM_SCALAR >
188 virtual void addParent(
const PRMClassElement< GUM_SCALAR >& elt);
191 virtual void addChild(
const PRMClassElement< GUM_SCALAR >& elt);
220 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 228 #include <agrum/PRM/elements/PRMSlotChain_tpl.h> PRMSlotChain(const PRMSlotChain< GUM_SCALAR > &source)
Copy constructor.
virtual const PRMType & type() const
This is similar to the following call: this->lastElt().type()
PRMSlotChain & operator=(const PRMSlotChain &source)
Copy operator. Don't use it.
virtual void addParent(const PRMClassElement< GUM_SCALAR > &elt)
See gum::PRMClassElement<GUM_SCALAR>::addParent_().
INLINE void emplace(Args &&... args)
const Set< PRMSlotChain< GUM_SCALAR > *> & slotChains() const
Returns the set of PRMSlotChain<GUM_SCALAR> of this Class<GUM_SCALAR>.
PRMSlotChain(Sequence< PRMClassElement< GUM_SCALAR > * > *chain, const std::string &name)
Tweak constructor.
const Sequence< PRMClassElement< GUM_SCALAR > *> & chain() const
Return the sequence representing the chain of elements in this PRMSlotChain.
virtual PRMType & type()
This is similar to the following call: this->lastElt().type()
const PRMClassElement< GUM_SCALAR > & lastElt() const
Returns the last element of the slot chain, typically this is an gum::PRMAttribute or a gum::PRMAggre...
bool _isMultiple_
Flag indicating if this slot chain is multiple or not.
virtual PRMAttribute< GUM_SCALAR > * getCastDescendant() const
Raise a gum::OperationNotAllowed exception See gum::PRMClassElement<GUM_SCALAR>::getCastDescendant() ...
virtual const Potential< GUM_SCALAR > & cpf() const
This is similar to the following call: this->lastElt().cpf()
void _copyLastElt_()
Copy the last element, this prevents unwanted DuplicateElement exceptions.
bool isMultiple() const
Return true if this slot chain contains at least one multiple reference slot.
ParamScopeData(const std::string &s, const PRMReferenceSlot< GUM_SCALAR > &ref, Idx d)
const PRMClassElementContainer< GUM_SCALAR > & end() const
Returns the PRMClassElement<GUM_SCALAR>Container over which this slot chain ends. ...
PRMClassElementContainer< GUM_SCALAR > & end()
Returns the PRMClassElement<GUM_SCALAR>Container over which this slot chain ends. ...
virtual PRMClassElement< GUM_SCALAR >::ClassElementType elt_type() const =0
See gum::PRMClassElement::elt_type().
PRMSlotChain(const std::string &name, const Sequence< PRMClassElement< GUM_SCALAR > * > &chain)
Default constructor.
virtual ~PRMSlotChain()
Destructor.
virtual void addChild(const PRMClassElement< GUM_SCALAR > &elt)
See gum::PRMClassElement<GUM_SCALAR>::addChild_().
PRMClassElement< GUM_SCALAR > & lastElt()
Returns the last element of the slot chain, typically this is an gum::PRMAttribute or a gum::PRMAggre...