33 #ifndef GUM_CNF_WRITER_H 34 #define GUM_CNF_WRITER_H 66 template <
typename GUM_SCALAR,
67 template <
typename >
class IApproximationPolicy = ExactPolicy >
70 ,
public IApproximationPolicy< GUM_SCALAR > {
96 void write(std::ostream& output,
107 void write(
const std::string& filePath,
110 inline GUM_SCALAR
fromExact(
const GUM_SCALAR& value)
const override {
111 return IApproximationPolicy< GUM_SCALAR >::fromExact(value);
116 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 123 #endif // GUM_NET_WRITER_H 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) override=0
Writes a Bayesian Network in the output stream using the BN format.
GUM_SCALAR fromExact(const GUM_SCALAR &value) const override
Class representing the minimal interface for Bayesian Network.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Writes a IBayesNet in the BN format.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
CNFWriter()
Default constructor.
~CNFWriter() override
Destructor.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Pure virtual class for writting a BN to a file.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.