<agrum/PRM/o3prm/O3prmBNWriter.h>
More...
#include <O3prmBNWriter.h>
|
| void | _doWrite (std::ostream &output, const IBayesNet< GUM_SCALAR > &bn) final |
| | Writes a Bayes net in the given output stream.
|
| void | _doWrite (std::string_view filePath, const IBayesNet< GUM_SCALAR > &bn) final |
| | Writes a Bayes net in the file referenced by filePath.
|
template<GUM_Numeric GUM_SCALAR>
class gum::O3prmBNWriter< GUM_SCALAR >
<agrum/PRM/o3prm/O3prmBNWriter.h>
Writes a Bayes net in a text file with O3PRM format
This class export a bayes net into an text file, using O3PRM format
Definition at line 77 of file O3prmBNWriter.h.
◆ O3prmBNWriter()
template<GUM_Numeric GUM_SCALAR>
◆ ~O3prmBNWriter()
template<GUM_Numeric GUM_SCALAR>
◆ _buildNameWithOnlyValidChars()
template<GUM_Numeric GUM_SCALAR>
| std::string gum::BNWriter< GUM_SCALAR >::_buildNameWithOnlyValidChars |
( |
std::string_view | name | ) |
|
|
protectedinherited |
◆ _doWrite() [1/2]
template<GUM_Numeric GUM_SCALAR>
Writes a Bayes net in the given output stream.
- Parameters
-
| output | The output stream. |
| bn | The bayes net written to the stream. |
- Exceptions
-
| IOError | Raised if an I/O error occurs. |
Implements gum::BNWriter< GUM_SCALAR >.
◆ _doWrite() [2/2]
template<GUM_Numeric GUM_SCALAR>
Writes a Bayes net in the file referenced by filePath.
If the file doesn't exists, it is created. If the file exists, it's content will be erased.
- Parameters
-
| filePath | The path to the file used to write the bayes net. |
| bn | The bayes net written in the file. |
- Exceptions
-
| IOError | Raised if an I/O error occurs. |
Implements gum::BNWriter< GUM_SCALAR >.
◆ _extractAttribute_()
template<GUM_Numeric GUM_SCALAR>
◆ _extractCPT_()
template<GUM_Numeric GUM_SCALAR>
◆ _extractDiscretizedType_()
template<GUM_Numeric GUM_SCALAR>
template<typename VARTYPE>
| std::string gum::O3prmBNWriter< GUM_SCALAR >::_extractDiscretizedType_ |
( |
const VARTYPE * | var | ) |
|
|
private |
◆ _extractLabelizedType_()
template<GUM_Numeric GUM_SCALAR>
◆ _extractName_()
template<GUM_Numeric GUM_SCALAR>
◆ _extractParents_()
template<GUM_Numeric GUM_SCALAR>
◆ _extractRangeType_()
template<GUM_Numeric GUM_SCALAR>
◆ _extractType_()
template<GUM_Numeric GUM_SCALAR>
◆ _onlyValidCharsInName()
template<GUM_Numeric GUM_SCALAR>
| std::string gum::BNWriter< GUM_SCALAR >::_onlyValidCharsInName |
( |
std::string_view | name | ) |
|
|
protectedinherited |
◆ _syntacticalCheck()
template<GUM_Numeric GUM_SCALAR>
|
|
protectedvirtualinherited |
◆ _validCharInNamesCheck()
template<GUM_Numeric GUM_SCALAR>
◆ isModificationAllowed()
template<GUM_Numeric GUM_SCALAR>
◆ setAllowModification()
template<GUM_Numeric GUM_SCALAR>
◆ toString()
template<GUM_Numeric GUM_SCALAR>
◆ write() [1/2]
template<GUM_Numeric GUM_SCALAR>
Writes a Bayesian network in the output stream.
- If the bn can not be written for syntactical reasons, throw an error or try to correct it (conditioned by the value of allowModification
- Parameters
-
| output | The output stream. |
| bn | The Bayesian network written in output (not const since updateMetaData). |
- Exceptions
-
References write().
Referenced by gum::credal::CredalNet< GUM_SCALAR >::saveBNsMinMax(), write(), and write().
◆ write() [2/2]
template<GUM_Numeric GUM_SCALAR>
Writes a Bayesian network in the file referenced by filePath.
- If the file doesn't exists, it is created.
- If the file exists, it's content will be erased.
- If the bn can not be written for syntactical reasons, throw an error or try to correct it (conditioned by the value of allowModification
- Parameters
-
| filePath | The path to the file used to write the Bayesian network. |
| bn | The Bayesian network written to the file (not const since updateMetaData). |
- Exceptions
-
| IOError | Raised if an I/O error occurs. |
References write().
◆ _allowModification_
template<GUM_Numeric GUM_SCALAR>
The documentation for this class was generated from the following file: