![]() |
aGrUM 3.2.0
a C++ library for (probabilistic) graphical models
|
Represent a o3prmr context, with an import, and some sequencials commands. More...
#include <O3prmrContext.h>
Public Member Functions | |
| O3prmrContext (std::string_view filename="") | |
| O3prmrContext (const O3prmrContext &s) | |
| virtual | ~O3prmrContext () |
| const ImportCommand * | mainImport () const |
| std::string | filename () const |
| std::string | package () const |
| void | setPackage (std::string_view package) |
| std::string | aliasToImport (std::string_view alias) |
| std::vector< ImportCommand * > | imports () const |
| void | addImport (int line, std::string_view import, std::string_view alias) |
| void | addImport (int line, std::string_view import, bool ismain) |
| void | addImport (const ImportCommand &i) |
| std::vector< O3prmrSession< GUM_SCALAR > * > | sessions () const |
| void | addSession (const O3prmrSession< GUM_SCALAR > &session) |
| virtual std::string | toString () const |
| O3prmrContext & | operator+= (const O3prmrContext &c) |
Private Attributes | |
| std::string | m_filename |
| std::string | m_package |
| std::vector< O3prmrSession< GUM_SCALAR > * > | m_sessions |
| std::vector< ImportCommand * > | m_imports |
| ImportCommand * | m_mainImport |
Represent a o3prmr context, with an import, and some sequencials commands.
Definition at line 216 of file O3prmrContext.h.
|
explicit |
Definition at line 135 of file O3prmrContext_tpl.h.
References filename(), m_filename, and m_mainImport.
Referenced by O3prmrContext(), and operator+=().
| gum::prm::o3prmr::O3prmrContext< GUM_SCALAR >::O3prmrContext | ( | const O3prmrContext< GUM_SCALAR > & | s | ) |
Definition at line 141 of file O3prmrContext_tpl.h.
References O3prmrContext(), m_filename, and m_mainImport.
|
virtual |
Definition at line 148 of file O3prmrContext_tpl.h.
References m_imports, and m_sessions.
| void gum::prm::o3prmr::O3prmrContext< GUM_SCALAR >::addImport | ( | const ImportCommand & | i | ) |
Definition at line 126 of file O3prmrContext_tpl.h.
References gum::prm::o3prmr::ImportCommand::ImportCommand(), gum::prm::o3prmr::ImportCommand::alias, gum::prm::o3prmr::ImportCommand::line, m_imports, m_mainImport, and gum::prm::o3prmr::ImportCommand::value.
| void gum::prm::o3prmr::O3prmrContext< GUM_SCALAR >::addImport | ( | int | line, |
| std::string_view | import, | ||
| bool | ismain ) |
Definition at line 194 of file O3prmrContext_tpl.h.
References gum::prm::o3prmr::ImportCommand::ImportCommand(), m_imports, and m_mainImport.
| void gum::prm::o3prmr::O3prmrContext< GUM_SCALAR >::addImport | ( | int | line, |
| std::string_view | import, | ||
| std::string_view | alias ) |
Definition at line 185 of file O3prmrContext_tpl.h.
References gum::prm::o3prmr::ImportCommand::ImportCommand(), m_imports, and m_mainImport.
Referenced by gum::prm::o3prmr::O3prmrInterpreter::checkSemantic().
| void gum::prm::o3prmr::O3prmrContext< GUM_SCALAR >::addSession | ( | const O3prmrSession< GUM_SCALAR > & | session | ) |
Definition at line 206 of file O3prmrContext_tpl.h.
References m_sessions.
Referenced by gum::prm::o3prmr::O3prmrInterpreter::checkSemantic().
| std::string gum::prm::o3prmr::O3prmrContext< GUM_SCALAR >::aliasToImport | ( | std::string_view | alias | ) |
Definition at line 172 of file O3prmrContext_tpl.h.
References m_imports.
Referenced by gum::prm::o3prmr::O3prmrInterpreter::findSystemName().
| std::string gum::prm::o3prmr::O3prmrContext< GUM_SCALAR >::filename | ( | ) | const |
Definition at line 157 of file O3prmrContext_tpl.h.
References m_filename.
Referenced by O3prmrContext(), gum::prm::o3prmr::O3prmrInterpreter::addError(), gum::prm::o3prmr::O3prmrInterpreter::addWarning(), and gum::prm::o3prmr::O3prmrInterpreter::import().
| std::vector< ImportCommand * > gum::prm::o3prmr::O3prmrContext< GUM_SCALAR >::imports | ( | ) | const |
Definition at line 180 of file O3prmrContext_tpl.h.
References m_imports.
Referenced by gum::prm::o3prmr::O3prmrInterpreter::checkSemantic().
| const ImportCommand * gum::prm::o3prmr::O3prmrContext< GUM_SCALAR >::mainImport | ( | ) | const |
Definition at line 121 of file O3prmrContext_tpl.h.
References m_mainImport.
Referenced by gum::prm::o3prmr::O3prmrInterpreter::system().
| O3prmrContext< GUM_SCALAR > & gum::prm::o3prmr::O3prmrContext< GUM_SCALAR >::operator+= | ( | const O3prmrContext< GUM_SCALAR > & | c | ) |
Definition at line 231 of file O3prmrContext_tpl.h.
References O3prmrContext().
| std::string gum::prm::o3prmr::O3prmrContext< GUM_SCALAR >::package | ( | ) | const |
Definition at line 162 of file O3prmrContext_tpl.h.
References m_package.
Referenced by setPackage().
| std::vector< O3prmrSession< GUM_SCALAR > * > gum::prm::o3prmr::O3prmrContext< GUM_SCALAR >::sessions | ( | ) | const |
Definition at line 201 of file O3prmrContext_tpl.h.
References m_sessions.
Referenced by gum::prm::o3prmr::O3prmrInterpreter::checkSemantic(), and gum::prm::o3prmr::O3prmrInterpreter::interpret().
| void gum::prm::o3prmr::O3prmrContext< GUM_SCALAR >::setPackage | ( | std::string_view | package | ) |
Definition at line 167 of file O3prmrContext_tpl.h.
References m_package, and package().
|
virtual |
Definition at line 211 of file O3prmrContext_tpl.h.
|
private |
Definition at line 217 of file O3prmrContext.h.
Referenced by O3prmrContext(), O3prmrContext(), and filename().
|
private |
Definition at line 220 of file O3prmrContext.h.
Referenced by ~O3prmrContext(), addImport(), addImport(), addImport(), aliasToImport(), imports(), and toString().
|
private |
Definition at line 221 of file O3prmrContext.h.
Referenced by O3prmrContext(), O3prmrContext(), addImport(), addImport(), addImport(), and mainImport().
|
private |
Definition at line 218 of file O3prmrContext.h.
Referenced by package(), setPackage(), and toString().
|
private |
Definition at line 219 of file O3prmrContext.h.
Referenced by ~O3prmrContext(), addSession(), and sessions().