aGrUM  0.20.3
a C++ library for (probabilistic) graphical models
gum::prm::o3prmr::O3prmrCommand Class Referenceabstract

This is an abstract class. More...

#include <O3prmrContext.h>

+ Inheritance diagram for gum::prm::o3prmr::O3prmrCommand:

Public Attributes

int line
 

Public Member Functions

 O3prmrCommand (int line)
 
 O3prmrCommand (const O3prmrCommand &c)
 
virtual ~O3prmrCommand ()
 
virtual RequestType type () const =0
 
virtual std::string toString () const =0
 

Public Types

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

Detailed Description

This is an abstract class.

It represent a o3prmr command. There five types of command, such sub-classes.

Definition at line 49 of file O3prmrContext.h.

Member Enumeration Documentation

◆ RequestType

Enumerator
Observe 
Unobserve 
Query 
SetEngine 
SetGndEngine 

Definition at line 52 of file O3prmrContext.h.

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

Constructor & Destructor Documentation

◆ O3prmrCommand() [1/2]

gum::prm::o3prmr::O3prmrCommand::O3prmrCommand ( int  line)
inlineexplicit

Definition at line 61 of file O3prmrContext.h.

References line.

Referenced by gum::prm::o3prmr::SetEngineCommand::SetEngineCommand(), and gum::prm::o3prmr::SetGndEngineCommand::SetGndEngineCommand().

+ Here is the caller graph for this function:

◆ O3prmrCommand() [2/2]

gum::prm::o3prmr::O3prmrCommand::O3prmrCommand ( const O3prmrCommand c)
inline

Definition at line 62 of file O3prmrContext.h.

References line.

Referenced by gum::prm::o3prmr::SetEngineCommand::SetEngineCommand(), and gum::prm::o3prmr::SetGndEngineCommand::SetGndEngineCommand().

+ Here is the caller graph for this function:

◆ ~O3prmrCommand()

virtual gum::prm::o3prmr::O3prmrCommand::~O3prmrCommand ( )
inlinevirtual

Definition at line 63 of file O3prmrContext.h.

63 {}

Member Function Documentation

◆ toString()

◆ type()

virtual RequestType gum::prm::o3prmr::O3prmrCommand::type ( ) const
pure virtual

Implemented in gum::prm::o3prmr::QueryCommand< GUM_SCALAR >, gum::prm::o3prmr::UnobserveCommand< GUM_SCALAR >, gum::prm::o3prmr::ObserveCommand< GUM_SCALAR >, gum::prm::o3prmr::SetGndEngineCommand, and gum::prm::o3prmr::SetEngineCommand.

Referenced by gum::prm::o3prmr::O3prmrSession< double >::addCommand().

+ Here is the caller graph for this function:

Member Data Documentation

◆ line

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

Definition at line 51 of file O3prmrContext.h.

Referenced by O3prmrCommand().


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