12#ifndef SST_CORE_SERIALIZATION_OBJECTMAPDEFERRED_H
13#define SST_CORE_SERIALIZATION_OBJECTMAPDEFERRED_H
15#include "sst/core/serialization/serializer.h"
21namespace SST::Core::Serialization {
37 std::string
getType() const final
override {
return type_; }
45 void*
getAddr() const final
override {
return addr_; }
55 const ObjectMultimap&
getVariables() const final
override {
return obj_->getVariables(); }
70 if ( name ==
"!proxy!" ) {
74 printf(
"WARNING:: ObjectMapDeferred not built properly. No mapping will be available\n");
93 ser.enable_pointer_tracking();
94 ser.start_mapping(
this);
96 SST_SER_NAME(addr_,
"!proxy!");
122 std::string type_ =
"";
ObjectMap version that will delay building the internal data structures until the object is "selected...
Definition objectMapDeferred.h:30
void deactivate_callback() final override
Function that will get called when this object is deactivated (i.e selectParent() is called).
Definition objectMapDeferred.h:99
const ObjectMultimap & getVariables() const final override
Get the list of child variables contained in this ObjectMap.
Definition objectMapDeferred.h:55
std::string getType() const final override
Returns type of the deferred object.
Definition objectMapDeferred.h:37
void addVariable(const std::string &name, ObjectMap *obj) final override
For the Deferred Build, the only variable that gets added will be the "real" ObjectMap.
Definition objectMapDeferred.h:64
void * getAddr() const final override
Returns nullptr since there is no underlying object being represented.
Definition objectMapDeferred.h:45
void activate_callback() final override
Function that will get called when this object is selected.
Definition objectMapDeferred.h:87
Base class for objects created by the serializer mapping mode used to map the variables for objects.
Definition objectMap.h:188
ObjectMap()=default
Default constructor primarily used for the "top" object in the hierarchy.
static std::string demangle_name(const char *name)
Static function to demangle type names returned from typeid(T).name().
Definition objectMap.cc:152
This class is basically a wrapper for objects to declare the order in which their members should be s...
Definition serializer.h:43