aGrUM  0.14.2
PRMFuncAttribute.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2005 by Christophe GONZALES and Pierre-Henri WUILLEMIN *
3  * {prenom.nom}_at_lip6.fr *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ***************************************************************************/
27 #ifndef GUM_FUNC_ATTRIBUTE_H
28 #define GUM_FUNC_ATTRIBUTE_H
29 
31 
35 
36 namespace gum {
37  namespace prm {
38 
54  template < typename GUM_SCALAR >
55  class PRMFuncAttribute : public PRMScalarAttribute< GUM_SCALAR > {
56  public:
70  PRMFuncAttribute(const std::string& name,
71  const PRMType& type,
74 
76  virtual ~PRMFuncAttribute();
77 
79  virtual void addParent(const PRMClassElement< GUM_SCALAR >& elt);
80 
82  virtual void addChild(const PRMClassElement< GUM_SCALAR >& elt);
83 
84  protected:
87 
91 
92  virtual void _setCpf(Potential< GUM_SCALAR >* cpf);
93  };
94 
95 
96 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
97  extern template class PRMFuncAttribute< double >;
98 #endif
99 
100 
101  } /* namespace prm */
102 } // namespace gum
103 
105 
106 #endif /* GUM_FUNC_ATTRIBUTE_H */
aGrUM&#39;s Potential is a multi-dimensional array with tensor operators.
Definition: potential.h:57
const std::string & name() const
Returns the name of this object.
Definition: PRMObject_inl.h:32
PRMFuncAttribute< GUM_SCALAR > & operator=(const PRMFuncAttribute< GUM_SCALAR > &from)
Copy operator. Don&#39;t use it.
Abstract class representing an element of PRM class.
virtual void addChild(const PRMClassElement< GUM_SCALAR > &elt)
See gum::PRMClassElement::_addChild().
virtual PRMType & type()
See gum::PRMClassElement::type().
gum is the global namespace for all aGrUM entities
Definition: agrum.h:25
Headers of gum::MultiDimImplementation.
virtual const Potential< GUM_SCALAR > & cpf() const
See gum::PRMClassElement::cpf().
Header of the Potential class.
<agrum/PRM/elements/funcAttribute.h>
Inline implementation of gum::PRMFuncAttribute.
Multidimensional matrix stored as an array in memory.
Definition: multiDimArray.h:51
This is a decoration of the DiscreteVariable class.
Definition: PRMType.h:60
PRMFuncAttribute(const std::string &name, const PRMType &type, MultiDimImplementation< GUM_SCALAR > *impl=new MultiDimArray< GUM_SCALAR >())
Constructor used by gum::Class.
Headers of 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>
Headers of gum::PRMScalarAttribute.