52#ifndef GUM_CNF_WRITER_H
53#define GUM_CNF_WRITER_H
84 template <
typename GUM_SCALAR,
template <
typename >
class IApproximationPolicy =
ExactPolicy >
129 inline GUM_SCALAR
fromExact(const GUM_SCALAR& value)
const override {
130 return IApproximationPolicy< GUM_SCALAR >::fromExact(value);
135#ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
136 extern template class CNFWriter< double >;
Definition of abstract classes for file output manipulation of Bayesian networks.
BNWriter()
Default constructor.
GUM_SCALAR fromExact(const GUM_SCALAR &value) const override
Convert value to his approximation.
CNFWriter(const CNFWriter &)=default
Default constructor.
CNFWriter()
Default constructor.
CNFWriter(CNFWriter &&) noexcept=default
Default constructor.
void _doWrite(std::ostream &output, const IBayesNet< GUM_SCALAR > &bn) override=0
Writes a Bayesian network in the output stream using the BN format.
~CNFWriter() override
Destructor.
Class implementing exact approximation policy (meaning a value is approximate to itself).
Class representing the minimal interface for Bayesian network with no numerical data.
Classes used to practice approximation on value.
gum is the global namespace for all aGrUM entities