![]() |
aGrUM
0.16.0
|
Read an O3PRM and transform the gum::prm::PRMSystem into gum::BayesNet. More...
#include <agrum/PRM/o3prm/O3prmBNReader.h>
Public Member Functions | |
O3prmBNReader (BayesNet< GUM_SCALAR > *bn, const std::string &filename, const std::string &entityName="", const std::string &classPath="") | |
~O3prmBNReader () | |
Size | proceed () |
parse the file More... | |
Size | errors () |
publishing Errors API More... | |
Size | warnings () |
of errorsMore... | |
Idx | errLine (Idx i) |
publishing Errors API More... | |
Idx | errCol (Idx i) |
col of ith error or warning More... | |
bool | errIsError (Idx i) |
type of ith error or warning More... | |
std::string | errMsg (Idx i) |
message of ith error or warning More... | |
void | showElegantErrors (std::ostream &o=std::cerr) |
send on std::cerr the list of errors More... | |
void | showElegantErrorsAndWarnings (std::ostream &o=std::cerr) |
send on std::cerr the list of errors or warnings More... | |
void | showErrorCounts (std::ostream &o=std::cerr) |
send on std::cerr the number of errors and the number of warnings More... | |
Read an O3PRM and transform the gum::prm::PRMSystem into gum::BayesNet.
GUM_SCALAR | The scalar type used both for the gum::prm::PRM and the gum::BayesNet. |
Definition at line 57 of file O3prmBNReader.h.
gum::O3prmBNReader< GUM_SCALAR >::O3prmBNReader | ( | BayesNet< GUM_SCALAR > * | bn, |
const std::string & | filename, | ||
const std::string & | entityName = "" , |
||
const std::string & | classPath = "" |
||
) |
Definition at line 67 of file O3prmBNReader_tpl.h.
References gum::O3prmBNReader< GUM_SCALAR >::__bn, gum::O3prmBNReader< GUM_SCALAR >::__classpath, gum::O3prmBNReader< GUM_SCALAR >::__entityName, gum::O3prmBNReader< GUM_SCALAR >::__filename, and gum::O3prmBNReader< GUM_SCALAR >::__getEntityName().
gum::O3prmBNReader< GUM_SCALAR >::~O3prmBNReader | ( | ) |
Definition at line 80 of file O3prmBNReader_tpl.h.
|
private |
Definition at line 168 of file O3prmBNReader_tpl.h.
References gum::O3prmBNReader< GUM_SCALAR >::__bn, gum::prm::PRMSystem< GUM_SCALAR >::groundedBN(), and gum::prm::PRMSystem< GUM_SCALAR >::instantiate().
Referenced by gum::O3prmBNReader< GUM_SCALAR >::proceed().
|
staticprivate |
Definition at line 59 of file O3prmBNReader_tpl.h.
Referenced by gum::O3prmBNReader< GUM_SCALAR >::O3prmBNReader().
|
staticprivate |
Definition at line 51 of file O3prmBNReader_tpl.h.
Referenced by gum::O3prmBNReader< GUM_SCALAR >::proceed().
|
staticprivate |
Definition at line 36 of file O3prmBNReader_tpl.h.
Referenced by gum::O3prmBNReader< GUM_SCALAR >::proceed().
|
inline |
col of ith error or warning
Definition at line 81 of file O3prmBNReader.h.
References gum::O3prmBNReader< GUM_SCALAR >::__errors, gum::ParseError::column, and gum::ErrorsContainer::error().
|
inline |
type of ith error or warning
Definition at line 83 of file O3prmBNReader.h.
References gum::O3prmBNReader< GUM_SCALAR >::__errors, gum::ErrorsContainer::error(), and gum::ParseError::is_error.
|
inline |
publishing Errors API
Definition at line 79 of file O3prmBNReader.h.
References gum::O3prmBNReader< GUM_SCALAR >::__errors, gum::ErrorsContainer::error(), and gum::ParseError::line.
|
inline |
message of ith error or warning
Definition at line 85 of file O3prmBNReader.h.
References gum::O3prmBNReader< GUM_SCALAR >::__errors, gum::ErrorsContainer::error(), and gum::ParseError::msg.
|
inline |
publishing Errors API
Definition at line 75 of file O3prmBNReader.h.
References gum::O3prmBNReader< GUM_SCALAR >::__errors, and gum::ErrorsContainer::error_count.
Referenced by gum::O3prmBNReader< GUM_SCALAR >::proceed().
|
virtual |
parse the file
parse.
IOError | if file not exists |
IOError | if file not exists |
Implements gum::BNReader< GUM_SCALAR >.
Definition at line 88 of file O3prmBNReader_tpl.h.
References gum::O3prmBNReader< GUM_SCALAR >::__bn, gum::O3prmBNReader< GUM_SCALAR >::__classpath, gum::O3prmBNReader< GUM_SCALAR >::__entityName, gum::O3prmBNReader< GUM_SCALAR >::__errors, gum::O3prmBNReader< GUM_SCALAR >::__filename, gum::O3prmBNReader< GUM_SCALAR >::__generateBN(), gum::O3prmBNReader< GUM_SCALAR >::__getInstanceName(), gum::O3prmBNReader< GUM_SCALAR >::__getVariableName(), gum::prm::PRMSystem< GUM_SCALAR >::add(), gum::ErrorsContainer::add(), gum::prm::o3prm::O3prmReader< GUM_SCALAR >::addClassPath(), gum::Set< Key, Alloc >::contains(), gum::O3prmBNReader< GUM_SCALAR >::errors(), gum::prm::o3prm::O3prmReader< GUM_SCALAR >::errorsContainer(), gum::prm::PRM< GUM_SCALAR >::getClass(), gum::prm::PRM< GUM_SCALAR >::getSystem(), gum::Set< Key, Alloc >::insert(), gum::prm::PRM< GUM_SCALAR >::isClass(), gum::prm::PRM< GUM_SCALAR >::isSystem(), gum::prm::o3prm::O3prmReader< GUM_SCALAR >::prm(), gum::prm::o3prm::O3prmReader< GUM_SCALAR >::readFile(), and gum::to_string().
|
inline |
send on std::cerr the list of errors
Definition at line 88 of file O3prmBNReader.h.
References gum::O3prmBNReader< GUM_SCALAR >::__errors, and gum::ErrorsContainer::elegantErrors().
|
inline |
send on std::cerr the list of errors or warnings
Definition at line 93 of file O3prmBNReader.h.
References gum::O3prmBNReader< GUM_SCALAR >::__errors, and gum::ErrorsContainer::elegantErrorsAndWarnings().
|
inline |
send on std::cerr the number of errors and the number of warnings
Definition at line 98 of file O3prmBNReader.h.
References gum::O3prmBNReader< GUM_SCALAR >::__errors, and gum::ErrorsContainer::syntheticResults().
|
inline |
Definition at line 77 of file O3prmBNReader.h.
References gum::O3prmBNReader< GUM_SCALAR >::__errors, and gum::ErrorsContainer::warning_count.
|
private |
Definition at line 109 of file O3prmBNReader.h.
Referenced by gum::O3prmBNReader< GUM_SCALAR >::__generateBN(), gum::O3prmBNReader< GUM_SCALAR >::O3prmBNReader(), and gum::O3prmBNReader< GUM_SCALAR >::proceed().
|
private |
Definition at line 106 of file O3prmBNReader.h.
Referenced by gum::O3prmBNReader< GUM_SCALAR >::O3prmBNReader(), and gum::O3prmBNReader< GUM_SCALAR >::proceed().
|
private |
Definition at line 107 of file O3prmBNReader.h.
Referenced by gum::O3prmBNReader< GUM_SCALAR >::O3prmBNReader(), and gum::O3prmBNReader< GUM_SCALAR >::proceed().
|
private |
Definition at line 110 of file O3prmBNReader.h.
Referenced by gum::O3prmBNReader< GUM_SCALAR >::errCol(), gum::O3prmBNReader< GUM_SCALAR >::errIsError(), gum::O3prmBNReader< GUM_SCALAR >::errLine(), gum::O3prmBNReader< GUM_SCALAR >::errMsg(), gum::O3prmBNReader< GUM_SCALAR >::errors(), gum::O3prmBNReader< GUM_SCALAR >::proceed(), gum::O3prmBNReader< GUM_SCALAR >::showElegantErrors(), gum::O3prmBNReader< GUM_SCALAR >::showElegantErrorsAndWarnings(), gum::O3prmBNReader< GUM_SCALAR >::showErrorCounts(), and gum::O3prmBNReader< GUM_SCALAR >::warnings().
|
private |
Definition at line 104 of file O3prmBNReader.h.
Referenced by gum::O3prmBNReader< GUM_SCALAR >::O3prmBNReader(), and gum::O3prmBNReader< GUM_SCALAR >::proceed().