| SST 15.0
    Structural Simulation Toolkit | 
ObjectMap object for non-fundamental, non-container types. More...
#include <objectMap.h>
 
  
| Public Member Functions | |
| ObjectMapClass ()=default | |
| Default constructor. | |
| ObjectMapClass (const ObjectMapClass &)=delete | |
| Disallow copying and assignment. | |
| ObjectMapClass & | operator= (const ObjectMapClass &)=delete | 
| ObjectMapClass (void *addr, const std::string &type) | |
| Constructor. | |
| ~ObjectMapClass () override=default | |
| Destructor. | |
| std::string | getType () override | 
| Get the type of the represented object. | |
| void * | getAddr () override | 
| Get the address of the represented object. | |
|  Public Member Functions inherited from SST::Core::Serialization::ObjectMapWithChildren | |
| ~ObjectMapWithChildren () override | |
| Destructor. | |
| ObjectMapWithChildren (const ObjectMapWithChildren &)=delete | |
| Disallow copying and assignment. | |
| ObjectMapWithChildren & | operator= (const ObjectMapWithChildren &)=delete | 
| void | addVariable (const std::string &name, ObjectMap *obj) override | 
| Adds a variable to this ObjectMap. | |
| const std::multimap< std::string, ObjectMap * > & | getVariables () override | 
| Get the list of child variables contained in this ObjectMap. | |
|  Public Member Functions inherited from SST::Core::Serialization::ObjectMap | |
| ObjectMap ()=default | |
| Default constructor primarily used for the "top" object in the hierarchy. | |
| bool | isReadOnly () | 
| Check to see if this object is read-only. | |
| void | setReadOnly (bool state=true) | 
| Set the read-only state of the object. | |
| std::string | getName () | 
| Get the name of the variable represented by this ObjectMap. | |
| std::string | getFullName () | 
| Get the full hierarchical name of the variable represented by this ObjectMap, based on the path taken to get to this object. | |
| void | incRefCount () | 
| Increment the reference counter for this ObjectMap. | |
| void | decRefCount () | 
| Decrement the reference counter for this ObjectMap. | |
| int32_t | getRefCount () | 
| Get the current reference count. | |
| virtual ObjectMapComparison * | getComparison (const std::string &UNUSED(name), ObjectMapComparison::Op UNUSED(op), const std::string &UNUSED(value)) | 
| Get a watch point for this object. | |
| ObjectMap * | selectParent () | 
| Get the parent for this ObjectMap. | |
| ObjectMap * | selectVariable (std::string name, bool &loop_detected) | 
| Get the ObjectMap for the specified variable. | |
| virtual void | addVariable (const std::string &UNUSED(name), ObjectMap *UNUSED(obj)) | 
| Adds a variable to this ObjectMap. | |
| virtual std::string | get () | 
| Get the value of the variable as a string. | |
| void | set (const std::string &value) | 
| Sets the value of the variable represented by the ObjectMap to the specified value, which is represented as a string. | |
| virtual std::string | get (const std::string &var) | 
| Gets the value of the specified variable as a string. | |
| virtual void | set (const std::string &var, const std::string &value, bool &found, bool &read_only) | 
| Sets the value of the specified variable to the specified value, which is represented as a string. | |
| virtual bool | isFundamental () | 
| Check to see if this ObjectMap represents a fundamental or a class treated as a fundamental. | |
| virtual bool | isContainer () | 
| Check to see if this ObjectMap represents a container. | |
| virtual | ~ObjectMap ()=default | 
| Destructor. | |
| ObjectMap (const ObjectMap &)=delete | |
| Disallow copying and assignment. | |
| ObjectMap & | operator= (const ObjectMap &)=delete | 
| virtual std::string | listVariable (std::string name, bool &found, int recurse=0) | 
| Create a string that lists information for the specified variable. | |
| virtual std::string | list (int recurse=0) | 
| Create a string that lists information for the current object. | |
| virtual ObjectMap * | findVariable (const std::string &name) | 
| Find a variable in this object map. | |
| Protected Attributes | |
| std::string | type_ | 
| Type of the variable as given by the demangled version of typeid(T).name() for the type. | |
| void * | addr_ = nullptr | 
| Address of the variable for reading and writing. | |
|  Protected Attributes inherited from SST::Core::Serialization::ObjectMapWithChildren | |
| std::multimap< std::string, ObjectMap * > | variables_ | 
| Map that child ObjectMaps are stored in. | |
|  Protected Attributes inherited from SST::Core::Serialization::ObjectMap | |
| ObjectMapMetaData * | mdata_ = nullptr | 
| Metadata object for walking the object hierarchy. | |
| bool | read_only_ = false | 
| Indicates whether or not the variable is read-only. | |
| Additional Inherited Members | |
|  Static Public Member Functions inherited from SST::Core::Serialization::ObjectMap | |
| static std::string | demangle_name (const char *name) | 
| Static function to demangle type names returned from typeid(T).name() | |
|  Protected Member Functions inherited from SST::Core::Serialization::ObjectMapWithChildren | |
| ObjectMapWithChildren ()=default | |
| Default constructor. | |
|  Protected Member Functions inherited from SST::Core::Serialization::ObjectMap | |
| virtual void | set_impl (const std::string &UNUSED(value)) | 
| Function implemented by derived classes to implement set(). | |
| virtual void | activate_callback () | 
| Function that will get called when this object is selected. | |
| virtual void | deactivate_callback () | 
| Function that will get called when this object is deactivated (i.e selectParent() is called) | |
|  Static Protected Attributes inherited from SST::Core::Serialization::ObjectMap | |
| static const std::multimap< std::string, ObjectMap * > | emptyVars | 
| Static empty variable map for use by versions that don't have variables (i.e. | |
ObjectMap object for non-fundamental, non-container types.
This class allows for child variables.
| 
 | inline | 
Constructor.
| addr | Address of the object represented by this ObjectMap | 
| type | Type of this object as return by typeid(T).name() | 
References addr_, SST::Core::Serialization::ObjectMap::demangle_name(), SST::Core::Serialization::ObjectMapWithChildren::ObjectMapWithChildren(), and type_.
| 
 | overridedefault | 
Destructor.
Should not be called directly (i.e. do not call delete on the object). Call decRefCount() when object is no longer needed. This will also call decRefCount() on all its children.
| 
 | inlineoverridevirtual | 
Get the address of the represented object.
Implements SST::Core::Serialization::ObjectMap.
References addr_.
| 
 | inlineoverridevirtual | 
Get the type of the represented object.
Implements SST::Core::Serialization::ObjectMap.
References type_.