aGrUM  0.14.2
IInfluenceDiagramInference_tpl.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2005 by Pierre-Henri WUILLEMIN et Christophe GONZALES *
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  ***************************************************************************/
26 // to ease parsers in IDE
28 
29 #ifndef DOXYGEN_SHOULD_SKIP_THIS
30 
31 namespace gum {
32 
33  // Default Constructor
34  template < typename GUM_SCALAR >
36  const InfluenceDiagram< GUM_SCALAR >& infDiag) :
37  __infDiag(infDiag) {
38  GUM_CONSTRUCTOR(IInfluenceDiagramInference);
39  }
40 
41  // Destructor
42  template < typename GUM_SCALAR >
44  GUM_DESTRUCTOR(IInfluenceDiagramInference);
45  }
46 
47  template < typename GUM_SCALAR >
48  const InfluenceDiagram< GUM_SCALAR >&
50  return __infDiag;
51  }
52 
53 } /* namespace gum */
54 
55 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
const InfluenceDiagram< GUM_SCALAR > & influenceDiagram() const
Returns a constant reference over the InfluenceDiagram on which this class work.
gum is the global namespace for all aGrUM entities
Definition: agrum.h:25
const InfluenceDiagram< GUM_SCALAR > & __infDiag
The Bayes net we wish to perform inference on.
IInfluenceDiagramInference(const InfluenceDiagram< GUM_SCALAR > &infDiag)
Default constructor.
virtual ~IInfluenceDiagramInference()
Destructor.
This file contains abstract class definitions influence diagrams inference classes.