33 #ifndef DOXYGEN_SHOULD_SKIP_THIS 35 # undef COCO_PARSER_H__ 36 # undef COCO_SCANNER_H__ 37 # include <agrum/BN/io/UAI/cocoR/Parser.h> 38 #endif // DOXYGEN_SHOULD_SKIP_THIS 53 template <
typename GUM_SCALAR >
89 std::vector< std::tuple< float, int, int, int > > quartets);
137 const std::string& s);
143 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 151 #endif // UAIREADER_H Class representing a Bayesian Network.
bool trace() const
accessor to trace function (just write the number of parser line)
Idx errCol(Idx i)
col of ith error or warning
void __addError(Idx lig, Idx col, const std::string &s)
void __addWarning(Idx lig, Idx col, const std::string &s)
Size proceed() final
parse.
void showElegantErrorsAndWarnings(std::ostream &o=std::cerr)
send on std::cerr the list of errors or warnings with contents
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Idx errLine(Idx i)
line of ith error or warning
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Pure virtual class for reading a BN from a file.
void __addFatalError(Idx lig, Idx col, const std::string &s)
UAIReader(BayesNet< GUM_SCALAR > *bn, const std::string &filename)
Constructor A reader is defined for reading a defined file.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Size errors()
publishing Errors API
bool errIsError(Idx i)
type of ith error or warning
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
BayesNetFactory< GUM_SCALAR > * __factory
void showErrorCounts(std::ostream &o=std::cerr)
send on std::cerr the number of errors and the number of warnings
void showElegantErrors(std::ostream &o=std::cerr)
send on std::cerr the list of errorswith contents
~UAIReader() final
Default destructor.
BayesNet< GUM_SCALAR > * __bn
std::string errMsg(Idx i)
message of ith error or warning
Pure virtual class for reading a BN from a file.
void showErrorsAndWarnings(std::ostream &o=std::cerr)
send on std::cerr the list of errors or warnings
Size Idx
Type for indexes.
const std::string & streamName() const
name of readen file
UAI::Scanner & scanner()
Direct access to DSL scanner (mandatory for listener connection)
std::size_t Size
In aGrUM, hashed values are unsigned long int.
A factory class to ease BayesNet construction.
void buildFromQuartets(std::vector< std::tuple< float, int, int, int > > quartets)