58 template <
typename GUM_SCALAR >
64 template <
typename GUM_SCALAR >
71 template <
typename GUM_SCALAR >
80 template <
typename GUM_SCALAR >
85 template <
typename GUM_SCALAR >
90 template <
typename GUM_SCALAR >
95 template <
typename GUM_SCALAR >
100 return std::string();
103 template <
typename GUM_SCALAR >
108 template <
typename GUM_SCALAR >
110 const std::string&
import,
111 const std::string& alias) {
117 template <
typename GUM_SCALAR >
125 template <
typename GUM_SCALAR >
130 template <
typename GUM_SCALAR >
135 template <
typename GUM_SCALAR >
140 output +=
"package " +
m_package +
";\n";
145 output += (*i)->toString() +
"\n";
150 output += (*i)->toString() +
"\n";
155 template <
typename GUM_SCALAR >
159 for (std::vector< ImportCommand* >::const_iterator i =
imports.begin(); i !=
imports.end();
176 template <
typename GUM_SCALAR >
181 template <
typename GUM_SCALAR >
187 template <
typename GUM_SCALAR >
195 template <
typename GUM_SCALAR >
200 template <
typename GUM_SCALAR >
205 template <
typename GUM_SCALAR >
210 template <
typename GUM_SCALAR >
212 const std::string& leftValue,
213 const std::string& rightValue) {
217 template <
typename GUM_SCALAR >
222 template <
typename GUM_SCALAR >
227 template <
typename GUM_SCALAR >
232 template <
typename GUM_SCALAR >
237 template <
typename GUM_SCALAR >
239 switch (command->
type()) {
249 m_commands.push_back(
254 m_commands.push_back(
259 m_commands.push_back(
265 template <
typename GUM_SCALAR >
269 output +=
"request " +
m_name +
" {\n";
271 for (std::vector< O3prmrCommand* >::const_iterator i =
m_commands.begin();
275 output += (*i)->toString() +
"\n";
283 template <
typename GUM_SCALAR >
286 for (std::vector< O3prmrCommand* >::const_iterator i = c.
m_commands.begin();
Headers of O3prmInterpreter.
This is an abstract class.
virtual RequestType type() const =0
std::vector< ImportCommand * > m_imports
ImportCommand * m_mainImport
std::string aliasToImport(const std::string &alias)
std::vector< O3prmrSession< GUM_SCALAR > * > sessions() const
void addSession(const O3prmrSession< GUM_SCALAR > &session)
virtual std::string toString() const
std::vector< ImportCommand * > imports() const
std::vector< O3prmrSession< GUM_SCALAR > * > m_sessions
void addImport(int line, const std::string &import, const std::string &alias)
void setPackage(const std::string &package)
O3prmrContext(const std::string &filename=std::string())
std::string filename() const
O3prmrContext & operator+=(const O3prmrContext &c)
std::string package() const
This class contains a o3prmr session.
void addSetEngine(int line, const std::string &value)
O3prmrSession & operator+=(const O3prmrSession &c)
std::vector< O3prmrCommand * > commands() const
O3prmrSession(const std::string &name=std::string())
std::string m_name
The session name;.
void addQuery(int line, const std::string &value)
virtual std::string toString() const
std::vector< O3prmrCommand * > m_commands
A sequence of commands.
void addUnobserve(int line, const std::string &value)
void addSetGndEngine(int line, const std::string &value)
void addCommand(const O3prmrCommand *command)
void addObserve(int line, const std::string &leftValue, const std::string &rightValue)
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Size Idx
Type for indexes.
namespace for all probabilistic relational models entities
gum is the global namespace for all aGrUM entities