SST 16.0.0
Structural Simulation Toolkit
SST::Core::Serialization::ObjectMapComparison Class Referenceabstract

Base class for interacting with data from ObjectMap. More...

#include <objectMap.h>

Inheritance diagram for SST::Core::Serialization::ObjectMapComparison:
SST::Core::Serialization::ObjectMapComparison_impl< T, REF > SST::Core::Serialization::ObjectMapComparison_var< T1, T2 >

Public Types

enum class  Op : std::uint8_t {
  LT , LTE , GT , GTE ,
  EQ , NEQ , CHANGED , INVALID
}

Public Member Functions

 ObjectMapComparison (const std::string &name)
 ObjectMapComparison (const std::string &name, ObjectMap *obj)
virtual bool compare ()=0
virtual std::string getCurrentValue () const =0
virtual void print (std::ostream &stream) const =0
virtual void * getVar () const =0
const std::string & getName () const

Static Public Member Functions

static Op getOperationFromString (const std::string &op)
static std::string getStringFromOp (Op op)

Protected Attributes

std::string name_ = ""
ObjectMapobj_ = nullptr

Detailed Description

Base class for interacting with data from ObjectMap.

This includes the ability to keep a history of values and compare the value against specified criteria (i.e., value >= 15, value == 6, etc). Because this class is type agnostic, interactions will be through strings, just as with the ObjectMapClass.

The implementations of the virtual functions needs to be done in templated child clases so that the type of the data is known.


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