#include <source/toolbox/database/Serializable.h>
Inheritance diagram for SAMRAI::tbox::Serializable:
Public Member Functions | |
Serializable () | |
virtual | ~Serializable () |
virtual void | putToDatabase (Pointer< Database > db)=0 |
Note that the derivation from DescribedClass is virtual. The reason for this is to avoid dynamic casting problems for smart pointers. For some objects in SAMRAI, inheritance from Serializable introduces an additional class hierarchy apart from some other that may be used to implement the subclass object. Pointers to base objects may need to be dynamically cast to derived objects in either hierarchy.
|
The constructor for the serializable base class does nothing interesting. |
|
The virtual destructor for the serializable base class does nothing interesting. |
|
This method serializes the object by writing data to the specified database. Implemented in SAMRAI::tbox::StatisticRestartDatabase. |