aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
gum::BNReader< GUM_SCALAR > Class Template Reference

Pure virtual class for reading a BN from a file. More...

#include <agrum/BN/io/BNReader.h>

Inheritance diagram for gum::BNReader< GUM_SCALAR >:

Public Member Functions

 BNReader (BayesNet< GUM_SCALAR > *bn, const std::string &filename)
 Constructor A reader is defined for reading a defined file.
virtual ~BNReader ()
 Default destructor.

Detailed Description

template<typename GUM_SCALAR>
class gum::BNReader< GUM_SCALAR >

Pure virtual class for reading a BN from a file.

Every class used to read the content of a Bayesian network from a stream, or a file must be a subclass of BNReader.

Definition at line 76 of file BNReader.h.

Constructor & Destructor Documentation

◆ BNReader()

template<typename GUM_SCALAR>
gum::BNReader< GUM_SCALAR >::BNReader ( BayesNet< GUM_SCALAR > * bn,
const std::string & filename )

Constructor A reader is defined for reading a defined file.

Hence the 2 args of the constructor. Note that the BN has to be built outside the reader. There is no delegation to create/destroy the BN from inside the reader.

Referenced by gum::O3prmBNReader< GUM_SCALAR >::O3prmBNReader().

Here is the caller graph for this function:

◆ ~BNReader()

template<typename GUM_SCALAR>
virtual gum::BNReader< GUM_SCALAR >::~BNReader ( )
virtual

Default destructor.


The documentation for this class was generated from the following file: