aGrUM  0.20.3
a C++ library for (probabilistic) graphical models
gum::FMDPReader< GUM_SCALAR > Class Template Referenceabstract

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

#include <fmdpReader.h>

+ Inheritance diagram for gum::FMDPReader< GUM_SCALAR >:

Public Member Functions

 FMDPReader (FMDP< GUM_SCALAR > *fmdp, const std::string &filename)
 Constructor A reader is defined for reading a defined file. More...
 
virtual ~FMDPReader ()
 Default destructor. More...
 
virtual Size proceed ()=0
 Reads a Factored Markov Decision Process from the file referenced by filePath into` parameter fmdp. More...
 

Detailed Description

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

Pure virtual class for reading a FMDP from a file.

Every class used to read the content of a Factored Markov Decision Process from a stream, or a file must be a subclass of FMDPReader.

Definition at line 60 of file fmdpReader.h.

Constructor & Destructor Documentation

◆ FMDPReader()

template<typename GUM_SCALAR >
gum::FMDPReader< GUM_SCALAR >::FMDPReader ( FMDP< GUM_SCALAR > *  fmdp,
const std::string &  filename 
)

Constructor A reader is defined for reading a defined file.

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

◆ ~FMDPReader()

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

Default destructor.

Member Function Documentation

◆ proceed()

template<typename GUM_SCALAR >
virtual Size gum::FMDPReader< GUM_SCALAR >::proceed ( )
pure virtual

Reads a Factored Markov Decision Process from the file referenced by filePath into` parameter fmdp.

Returns
Returns the number of error during the parsing (0 if none).

Implemented in gum::FMDPDatReader< GUM_SCALAR >.


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