![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
Pure virtual class for reading a MN from a file. More...
#include <agrum/MN/io/MNReader.h>
Public Member Functions | |
MNReader (MarkovNet< GUM_SCALAR > *MN, const std::string &filename) | |
Constructor A reader is defined for reading a defined file. More... | |
virtual | ~MNReader () |
Default destructor. More... | |
virtual Size | proceed ()=0 |
Reads a Markov Network from the file referenced by filePath into` parameter MarkovNet. More... | |
Pure virtual class for reading a MN from a file.
Every class used to read the content of a Markov Network from a stream, or a file must be a subclass of MNReader.
Definition at line 54 of file MNReader.h.
gum::MNReader< GUM_SCALAR >::MNReader | ( | MarkovNet< GUM_SCALAR > * | MN, |
const std::string & | filename | ||
) |
Constructor A reader is defined for reading a defined file.
Hence the 2 args of the constructor. Note that the MN has to be built outside the reader. There is no delegation to create/destroy the MN from inside the reader.
|
virtual |
Default destructor.
|
pure virtual |
Reads a Markov Network from the file referenced by filePath into` parameter MarkovNet.
Implemented in gum::UAIMNReader< GUM_SCALAR >.