31 template <
typename GUM_SCALAR >
33 const std::string& name,
37 std::stringstream str;
38 str <<
"In FuncAttribute(" << name <<
", " << type.
name() <<
", " << impl
43 template <
typename GUM_SCALAR >
48 template <
typename GUM_SCALAR >
52 template <
typename GUM_SCALAR >
56 template <
typename GUM_SCALAR >
64 template <
typename GUM_SCALAR >
70 template <
typename GUM_SCALAR >
74 "Cannot change CPF of a functional attribute");
aGrUM's Potential is a multi-dimensional array with tensor operators.
const std::string & name() const
Returns the name of this object.
PRMFuncAttribute< GUM_SCALAR > & operator=(const PRMFuncAttribute< GUM_SCALAR > &from)
Copy operator. Don't use it.
Abstract class representing an element of PRM class.
virtual void addChild(const PRMClassElement< GUM_SCALAR > &elt)
See gum::PRMClassElement::_addChild().
gum is the global namespace for all aGrUM entities
virtual const Potential< GUM_SCALAR > & cpf() const
See gum::PRMClassElement::cpf().
<agrum/PRM/elements/funcAttribute.h>
This is a decoration of the DiscreteVariable class.
PRMFuncAttribute(const std::string &name, const PRMType &type, MultiDimImplementation< GUM_SCALAR > *impl=new MultiDimArray< GUM_SCALAR >())
Constructor used by gum::Class.
virtual ~PRMFuncAttribute()
Destructor.
<agrum/multidim/multiDimImplementation.h>
virtual void addParent(const PRMClassElement< GUM_SCALAR > &elt)
See gum::PRMClassElement::_addParent().
virtual void _setCpf(Potential< GUM_SCALAR > *cpf)
<agrum/PRM/elements/scalarAttribute.h>
#define GUM_ERROR(type, msg)