aGrUM  0.16.0
GeneralizedCNFWriter.h
Go to the documentation of this file.
1 
33 #ifndef GUM_CNF_GEN_WRITER_H
34 #define GUM_CNF_GEN_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 
46 namespace gum {
47 
58  template < typename GUM_SCALAR,
59  template < typename > class IApproximationPolicy = ExactPolicy >
61  : public CNFWriter< GUM_SCALAR, IApproximationPolicy > {
62  public:
65 
70 
74  ~GeneralizedCNFWriter() final;
75 
77 
85  void write(std::ostream& output, const IBayesNet< GUM_SCALAR >& bn) final;
86 
95  void write(const std::string& filePath,
96  const IBayesNet< GUM_SCALAR >& bn) final;
97  };
98 
99 
100 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
101  extern template class GeneralizedCNFWriter< double >;
102 #endif
103 
104 } /* namespace gum */
105 
107 #endif // GUM_NET_WRITER_H
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
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
~GeneralizedCNFWriter() final
Destructor.
<agrum/BN/io/cnf/GeneralizedCNFWriter.h>
void write(std::ostream &output, const IBayesNet< GUM_SCALAR > &bn) final
Writes a Bayesian Network in the output stream using the BN format.
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.
GeneralizedCNFWriter()
Default constructor.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.