aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
gum::prm::o3prmr::SetEngineCommand Class Reference

#include <O3prmrContext.h>

Inheritance diagram for gum::prm::o3prmr::SetEngineCommand:
Collaboration diagram for gum::prm::o3prmr::SetEngineCommand:

Public Types

enum class  RequestType : char {
  Observe , Unobserve , Query , SetEngine ,
  SetGndEngine
}

Public Member Functions

 SetEngineCommand (int line, const std::string &value)
 SetEngineCommand (const SetEngineCommand &c)
RequestType type () const
std::string toString () const

Public Attributes

std::string value
int line

Detailed Description

Definition at line 100 of file O3prmrContext.h.

Member Enumeration Documentation

◆ RequestType

enum class gum::prm::o3prmr::O3prmrCommand::RequestType : char
stronginherited
Enumerator
Observe 
Unobserve 
Query 
SetEngine 
SetGndEngine 

Definition at line 70 of file O3prmrContext.h.

70: char { Observe, Unobserve, Query, SetEngine, SetGndEngine };

Constructor & Destructor Documentation

◆ SetEngineCommand() [1/2]

gum::prm::o3prmr::SetEngineCommand::SetEngineCommand ( int line,
const std::string & value )
inline

Definition at line 102 of file O3prmrContext.h.

References gum::prm::o3prmr::O3prmrCommand::O3prmrCommand(), gum::prm::o3prmr::O3prmrCommand::line, and value.

Referenced by SetEngineCommand().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetEngineCommand() [2/2]

gum::prm::o3prmr::SetEngineCommand::SetEngineCommand ( const SetEngineCommand & c)
inline

Definition at line 104 of file O3prmrContext.h.

104: O3prmrCommand(c), value(c.value) {}

References gum::prm::o3prmr::O3prmrCommand::O3prmrCommand(), SetEngineCommand(), and value.

Here is the call graph for this function:

Member Function Documentation

◆ toString()

std::string gum::prm::o3prmr::SetEngineCommand::toString ( ) const
inlinevirtual

Implements gum::prm::o3prmr::O3prmrCommand.

Definition at line 110 of file O3prmrContext.h.

110{ return "engine " + value + ";"; }

References value.

Referenced by gum::prm::o3prmr::O3prmrInterpreter::checkSemantic().

Here is the caller graph for this function:

◆ type()

RequestType gum::prm::o3prmr::SetEngineCommand::type ( ) const
inlinevirtual

Member Data Documentation

◆ line

◆ value

std::string gum::prm::o3prmr::SetEngineCommand::value

The documentation for this class was generated from the following file: