29 #ifndef GUM_REFERENCE_SLOT_H 30 #define GUM_REFERENCE_SLOT_H 32 #include <agrum/PRM/elements/PRMClassElement.h> 33 #include <agrum/PRM/elements/PRMClassElementContainer.h> 59 template <
typename GUM_SCALAR >
75 PRMClassElementContainer< GUM_SCALAR >& type,
76 bool isArray =
false);
112 virtual void addParent(
const PRMClassElement< GUM_SCALAR >& elt);
115 virtual void addChild(
const PRMClassElement< GUM_SCALAR >& elt);
172 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 180 #include <agrum/PRM/elements/PRMReferenceSlot_tpl.h> bool isArray() const
Returns true if this reference slot is an array.
bool _isArray_
Flag indicating if this slot is an array.
virtual const PRMType & type() const
Raise an OperationNotAllowed. See gum::PRMClassElement::type().
PRMReferenceSlot(const PRMReferenceSlot< GUM_SCALAR > &source)
Copy constructor. Don't use it.
virtual ~PRMReferenceSlot()
Destructor.
virtual Potential< GUM_SCALAR > & cpf()
Raise an OperationNotAllowed. See gum::PRMClassElement::cpf().
PRMReferenceSlot & operator=(const PRMReferenceSlot< GUM_SCALAR > &from)
Copy operator. Don't use it.
INLINE void emplace(Args &&... args)
virtual void addParent(const PRMClassElement< GUM_SCALAR > &elt)
See gum::PRMClassElement::addParent().
virtual const Potential< GUM_SCALAR > & cpf() const
Raise an OperationNotAllowed. See gum::PRMClassElement::cpf().
PRMClassElementContainer< GUM_SCALAR > & _slotType_
The type of this PRMReferenceSlot.
const PRMClassElementContainer< GUM_SCALAR > & slotType() const
Returns the type of this slot, which is a PRMClassElementContainer (it is not the type of PRMObject)...
PRMClassElementContainer< GUM_SCALAR > & slotType()
Returns the type of this slot, which is a PRMClassElementContainer (it is not the type of PRMObject)...
virtual PRMClassElement< GUM_SCALAR >::ClassElementType elt_type() const
Implementation of the pure virtual method of PRMObject.
PRMReferenceSlot(const std::string &name, PRMClassElementContainer< GUM_SCALAR > &type, bool isArray=false)
Default constructor.
virtual void addChild(const PRMClassElement< GUM_SCALAR > &elt)
See gum::PRMClassElement::addChild().
ParamScopeData(const std::string &s, const PRMReferenceSlot< GUM_SCALAR > &ref, Idx d)
virtual PRMAttribute< GUM_SCALAR > * getCastDescendant() const
Raise an OperationNotAllowed. See gum::PRMClassElement::getCastDescendant().
virtual PRMType & type()
Raise an OperationNotAllowed. See gum::PRMClassElement::type().