aGrUM  0.16.0
FactorisedValuesCNFWriter.h
Go to the documentation of this file.
1 
33 #ifndef GUM_OCNF_WRITER_H
34 #define GUM_OCNF_WRITER_H
35 
36 #include <fstream>
37 #include <iostream>
38 #include <sstream>
39 #include <string>
40 
42 #include <agrum/agrum.h>
44 #include <agrum/core/hashTable.h>
45 namespace gum {
46 
59  template < typename GUM_SCALAR,
60  template < typename > class IApproximationPolicy = ExactPolicy >
62  : public CNFWriter< GUM_SCALAR, IApproximationPolicy > {
63  public:
64  // ==========================================================================
66  // ==========================================================================
68 
73 
78 
80 
88  void write(std::ostream& output, const IBayesNet< GUM_SCALAR >& bn) final;
89 
98  void write(const std::string& filePath,
99  const IBayesNet< GUM_SCALAR >& bn) final;
100  };
101 
102 
103 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
104  extern template class FactorisedValuesCNFWriter< double >;
105 #endif
106 
107 } /* namespace gum */
108 
110 #endif // GUM_NET_WRITER_H
void write(std::ostream &output, const IBayesNet< GUM_SCALAR > &bn) final
Writes a Bayesian Network in the output stream using the BN format.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
FactorisedValuesCNFWriter()
Default constructor.
<agrum/BN/io/cnf/FactorisedValuesCNFWriter.h>
Class representing the minimal interface for Bayesian Network.
Definition: IBayesNet.h:62
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
~FactorisedValuesCNFWriter() final
Destructor.
Writes a IBayesNet in the BN format.
Definition: CNFWriter.h:68
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.