![]() |
aGrUM 3.2.0
a C++ library for (probabilistic) graphical models
|
This class contains a o3prmr session. More...
#include <O3prmrContext.h>
Public Member Functions | |
| O3prmrSession (std::string_view name="") | |
| O3prmrSession (const O3prmrSession &s) | |
| virtual | ~O3prmrSession () |
| std::string | name () const |
| std::vector< O3prmrCommand * > | commands () const |
| void | addObserve (int line, std::string_view leftValue, std::string_view rightValue) |
| void | addUnobserve (int line, std::string_view value) |
| void | addQuery (int line, std::string_view value) |
| void | addSetEngine (int line, std::string_view value) |
| void | addSetGndEngine (int line, std::string_view value) |
| void | addCommand (const O3prmrCommand *command) |
| virtual std::string | toString () const |
| O3prmrSession & | operator+= (const O3prmrSession &c) |
Private Member Functions | |
| void | addCommand (O3prmrCommand *command) |
Private Attributes | |
| std::string | m_name |
| The session name;. | |
| std::vector< O3prmrCommand * > | m_commands |
| A sequence of commands. | |
| std::map< const PRMSystem< GUM_SCALAR > *, PRMInference< GUM_SCALAR > * > | m_infEngineMap |
This class contains a o3prmr session.
It have a name and a sequence of commands.
Definition at line 182 of file O3prmrContext.h.
|
explicit |
Definition at line 252 of file O3prmrContext_tpl.h.
References m_name, and name().
Referenced by O3prmrSession(), gum::prm::o3prmr::O3prmrInterpreter::checkSemantic(), and operator+=().
| gum::prm::o3prmr::O3prmrSession< GUM_SCALAR >::O3prmrSession | ( | const O3prmrSession< GUM_SCALAR > & | s | ) |
Definition at line 257 of file O3prmrContext_tpl.h.
References O3prmrSession(), and m_name.
|
virtual |
Definition at line 263 of file O3prmrContext_tpl.h.
References m_commands.
| void gum::prm::o3prmr::O3prmrSession< GUM_SCALAR >::addCommand | ( | const O3prmrCommand * | command | ) |
Definition at line 313 of file O3prmrContext_tpl.h.
References gum::prm::o3prmr::SetEngineCommand::SetEngineCommand(), gum::prm::o3prmr::SetGndEngineCommand::SetGndEngineCommand(), m_commands, gum::prm::o3prmr::O3prmrCommand::Observe, gum::prm::o3prmr::O3prmrCommand::Query, gum::prm::o3prmr::O3prmrCommand::SetEngine, gum::prm::o3prmr::O3prmrCommand::SetGndEngine, gum::prm::o3prmr::O3prmrCommand::type(), and gum::prm::o3prmr::O3prmrCommand::Unobserve.
Referenced by addObserve(), addQuery(), addSetEngine(), addSetGndEngine(), addUnobserve(), gum::prm::o3prmr::O3prmrInterpreter::checkSemantic(), and operator+=().
|
private |
Definition at line 281 of file O3prmrContext_tpl.h.
References m_commands.
| void gum::prm::o3prmr::O3prmrSession< GUM_SCALAR >::addObserve | ( | int | line, |
| std::string_view | leftValue, | ||
| std::string_view | rightValue ) |
Definition at line 286 of file O3prmrContext_tpl.h.
References addCommand().
| void gum::prm::o3prmr::O3prmrSession< GUM_SCALAR >::addQuery | ( | int | line, |
| std::string_view | value ) |
Definition at line 298 of file O3prmrContext_tpl.h.
References addCommand().
| void gum::prm::o3prmr::O3prmrSession< GUM_SCALAR >::addSetEngine | ( | int | line, |
| std::string_view | value ) |
Definition at line 303 of file O3prmrContext_tpl.h.
References gum::prm::o3prmr::SetEngineCommand::SetEngineCommand(), and addCommand().
| void gum::prm::o3prmr::O3prmrSession< GUM_SCALAR >::addSetGndEngine | ( | int | line, |
| std::string_view | value ) |
Definition at line 308 of file O3prmrContext_tpl.h.
References gum::prm::o3prmr::SetGndEngineCommand::SetGndEngineCommand(), and addCommand().
| void gum::prm::o3prmr::O3prmrSession< GUM_SCALAR >::addUnobserve | ( | int | line, |
| std::string_view | value ) |
Definition at line 293 of file O3prmrContext_tpl.h.
References addCommand().
| std::vector< O3prmrCommand * > gum::prm::o3prmr::O3prmrSession< GUM_SCALAR >::commands | ( | ) | const |
Definition at line 276 of file O3prmrContext_tpl.h.
References m_commands.
| std::string gum::prm::o3prmr::O3prmrSession< GUM_SCALAR >::name | ( | ) | const |
Definition at line 271 of file O3prmrContext_tpl.h.
References m_name.
Referenced by O3prmrSession().
| O3prmrSession< GUM_SCALAR > & gum::prm::o3prmr::O3prmrSession< GUM_SCALAR >::operator+= | ( | const O3prmrSession< GUM_SCALAR > & | c | ) |
Definition at line 360 of file O3prmrContext_tpl.h.
References O3prmrSession(), addCommand(), and m_commands.
|
virtual |
Definition at line 341 of file O3prmrContext_tpl.h.
References m_commands, and m_name.
|
private |
A sequence of commands.
Definition at line 186 of file O3prmrContext.h.
Referenced by ~O3prmrSession(), addCommand(), addCommand(), commands(), operator+=(), and toString().
|
private |
Definition at line 187 of file O3prmrContext.h.
|
private |
The session name;.
Definition at line 184 of file O3prmrContext.h.
Referenced by O3prmrSession(), O3prmrSession(), name(), and toString().