aGrUM  0.16.0
ContextualDependenciesCNFWriter.h
Go to the documentation of this file.
1 
33 #ifndef GUM_CDCNF_WRITER_H
34 #define GUM_CDCNF_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 
60  template < typename GUM_SCALAR,
61  template < typename > class IApproximationPolicy = ExactPolicy >
63  : public CNFWriter< GUM_SCALAR, IApproximationPolicy > {
64  public:
65  // ==========================================================================
67  // ==========================================================================
69 
74 
79 
81 
89  void write(std::ostream& output, const IBayesNet< GUM_SCALAR >& bn) final;
90 
99  void write(const std::string& filePath,
100  const IBayesNet< GUM_SCALAR >& bn) final;
101  };
102 
103 
104 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
105  extern template class ContextualDependenciesCNFWriter< double >;
106 #endif
107 
108 } /* namespace gum */
109 
111 #endif // GUM_NET_WRITER_H
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
ContextualDependenciesCNFWriter()
Default constructor.
<agrum/BN/io/cnf/ContextualDependenciesCNFWriter.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
~ContextualDependenciesCNFWriter() 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.
void write(std::ostream &output, const IBayesNet< GUM_SCALAR > &bn) final
Writes a Bayesian Network in the output stream using the BN format.