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