![]() |
aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
|
Pure virtual class for reading a BN from a file. More...
#include <agrum/BN/io/BNReader.h>
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. | |
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.
| 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().
|
virtual |
Default destructor.