34 template <
typename GUM_SCALAR >
36 const std::string& name,
40 std::stringstream str;
41 str <<
"In FuncAttribute(" << name <<
", " << type.
name() <<
", " << impl
46 template <
typename GUM_SCALAR >
51 template <
typename GUM_SCALAR >
55 template <
typename GUM_SCALAR >
59 template <
typename GUM_SCALAR >
67 template <
typename GUM_SCALAR >
73 template <
typename GUM_SCALAR >
77 "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().
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
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)