49#ifndef GUM_SLOT_CHAIN_H
50#define GUM_SLOT_CHAIN_H
60 template <
typename GUM_SCALAR >
62 template <
typename GUM_SCALAR >
90 template <
typename GUM_SCALAR >
166 virtual const Tensor< GUM_SCALAR >&
cpf()
const;
230#ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
Headers of gum::PRMAggregate.
Headers of gum::PRMClassElement.
Inline implementation of gum::PRMSlotChain<GUM_SCALAR>.
The generic class for storing (ordered) sequences of objects.
PRMAttribute is a member of a Class in a PRM.
<agrum/PRM/classElementContainer.h>
PRMClassElement(const std::string &name)
Default constructor of a PRMClassElement.
ClassElementType
Returns true if obj_ptr is of type PRMReferenceSlot.
A PRMClass is an object of a PRM representing a fragment of a Bayesian network which can be instantia...
const std::string & name() const
Returns the name of this object.
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.
virtual void addChild(const PRMClassElement< GUM_SCALAR > &elt)
See gum::PRMClassElement<GUM_SCALAR>::addChild_().
Sequence< PRMClassElement< GUM_SCALAR > * > * _chain_
The sequence of PRMClassElement<GUM_SCALAR> composing the slot chain.
virtual void addParent(const PRMClassElement< GUM_SCALAR > &elt)
See gum::PRMClassElement<GUM_SCALAR>::addParent_().
PRMClassElementContainer< GUM_SCALAR > & end()
Returns the PRMClassElement<GUM_SCALAR>Container over which this slot chain ends.
virtual PRMAttribute< GUM_SCALAR > * getCastDescendant() const
Raise a gum::OperationNotAllowed exception See gum::PRMClassElement<GUM_SCALAR>::getCastDescendant().
PRMClassElement< GUM_SCALAR > & lastElt()
Returns the last element of the slot chain, typically this is an gum::PRMAttribute or a gum::PRMAggre...
virtual PRMType & type()
This is similar to the following call: this->lastElt().type().
virtual PRMClassElement< GUM_SCALAR >::ClassElementType elt_type() const
See gum::PRMClassElement<GUM_SCALAR>::elt_type().
PRMSlotChain & operator=(const PRMSlotChain &source)
Copy operator. Don't use it.
virtual ~PRMSlotChain()
Destructor.
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.
This is a decoration of the DiscreteVariable class.
namespace for all probabilistic relational models entities
gum is the global namespace for all aGrUM entities