aGrUM  0.14.2
gum::prm::o3prmr::QueryCommand< GUM_SCALAR > Class Template Reference

#include <O3prmrContext.h>

+ Inheritance diagram for gum::prm::o3prmr::QueryCommand< GUM_SCALAR >:
+ Collaboration diagram for gum::prm::o3prmr::QueryCommand< GUM_SCALAR >:

Public Attributes

std::string value
 
const PRMSystem< GUM_SCALAR > * system
 
PRMInference< GUM_SCALAR >::Chain chain
 
int line
 

Public Member Functions

 QueryCommand (int line, const std::string &val)
 
RequestType type () const
 
std::string toString () const
 

Public Types

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

Detailed Description

template<typename GUM_SCALAR>
class gum::prm::o3prmr::QueryCommand< GUM_SCALAR >

Definition at line 159 of file O3prmrContext.h.

Member Enumeration Documentation

◆ RequestType

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

Definition at line 51 of file O3prmrContext.h.

51  : char {
52  Observe,
53  Unobserve,
54  Query,
55  SetEngine,
56  SetGndEngine
57  };

Constructor & Destructor Documentation

◆ QueryCommand()

template<typename GUM_SCALAR>
gum::prm::o3prmr::QueryCommand< GUM_SCALAR >::QueryCommand ( int  line,
const std::string &  val 
)
inline

Definition at line 161 of file O3prmrContext.h.

161  :
162  O3prmrCommand(line), value(val), system(nullptr) {}
const PRMSystem< GUM_SCALAR > * system

Member Function Documentation

◆ toString()

template<typename GUM_SCALAR>
std::string gum::prm::o3prmr::QueryCommand< GUM_SCALAR >::toString ( ) const
inlinevirtual

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

Definition at line 169 of file O3prmrContext.h.

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

169 { return "? " + value + ";"; }
+ Here is the caller graph for this function:

◆ type()

template<typename GUM_SCALAR>
RequestType gum::prm::o3prmr::QueryCommand< GUM_SCALAR >::type ( ) const
inlinevirtual

Member Data Documentation

◆ chain

template<typename GUM_SCALAR>
PRMInference< GUM_SCALAR >::Chain gum::prm::o3prmr::QueryCommand< GUM_SCALAR >::chain

◆ line

int gum::prm::o3prmr::O3prmrCommand::line
inherited

◆ system

template<typename GUM_SCALAR>
const PRMSystem< GUM_SCALAR >* gum::prm::o3prmr::QueryCommand< GUM_SCALAR >::system

◆ value

template<typename GUM_SCALAR>
std::string gum::prm::o3prmr::QueryCommand< GUM_SCALAR >::value

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