27 #ifndef GUM_SLOT_CHAIN_H 28 #define GUM_SLOT_CHAIN_H 49 template <
typename GUM_SCALAR >
51 template <
typename GUM_SCALAR >
79 template <
typename GUM_SCALAR >
80 class PRMSlotChain :
public PRMClassElement< GUM_SCALAR > {
105 const Sequence< PRMClassElement< GUM_SCALAR >* >&
chain);
125 const std::string&
name);
148 virtual PRMType&
type();
151 virtual const PRMType&
type()
const;
157 virtual const Potential< GUM_SCALAR >&
cpf()
const;
165 PRMClassElementContainer< GUM_SCALAR >&
end();
169 const PRMClassElementContainer< GUM_SCALAR >&
end()
const;
173 PRMClassElement< GUM_SCALAR >&
lastElt();
177 const PRMClassElement< GUM_SCALAR >&
lastElt()
const;
181 Sequence< PRMClassElement< GUM_SCALAR >* >&
chain();
185 const Sequence< PRMClassElement< GUM_SCALAR >* >&
chain()
const;
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 PRMSlotChain & operator=(const PRMSlotChain &source)
Copy operator. Don't use it.
void __copyLastElt()
Copy the last element, this prevents unwanted DuplicateElement exceptions.
Header file of gum::Sequence, a class for storing (ordered) sequences of objects. ...
virtual void addParent(const PRMClassElement< GUM_SCALAR > &elt)
See gum::PRMClassElement<GUM_SCALAR>::_addParent().
const std::string & name() const
Returns the name of this object.
class for NoisyOR-net implementation as multiDim
Headers of the MultiDimBijArray class.
The generic class for storing (ordered) sequences of objects.
class for multiDimNoisyORCompound
virtual PRMType & type()
This is similar to the following call: this->lastElt().type()
gum is the global namespace for all aGrUM entities
Inline implementation of gum::PRMSlotChain<GUM_SCALAR>
virtual PRMAttribute< GUM_SCALAR > * getCastDescendant() const
Raise a gum::OperationNotAllowed exception See gum::PRMClassElement<GUM_SCALAR>::getCastDescendant() ...
Header of the Potential class.
virtual const Potential< 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. ...
Headers of gum::PRMAggregate.
Headers of gum::PRMClassElement.
Headers of gum::PRMAttribute.
bool __isMultiple
Flag indicating if this slot chain is multiple or not.
PRMSlotChain(const std::string &name, const Sequence< PRMClassElement< GUM_SCALAR > * > &chain)
Default constructor.
virtual ~PRMSlotChain()
Destructor.
virtual PRMClassElement< GUM_SCALAR >::ClassElementType elt_type() const
See gum::PRMClassElement<GUM_SCALAR>::elt_type().
Sequence< PRMClassElement< GUM_SCALAR > *> * __chain
The sequence of PRMClassElement<GUM_SCALAR> composing the slot chain.
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...
Headers of gum::prm::PRMClassElementContainer.
Headers of gum::PRMClassElement.
Sequence< PRMClassElement< GUM_SCALAR > *> & chain()
Return the sequence representing the chain of elements in this PRMSlotChain.
ClassElementType
Returns true if obj_ptr is of type PRMReferenceSlot.