Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

SAMRAI::tbox::Serializable Class Reference

#include <source/toolbox/database/Serializable.h>

Inheritance diagram for SAMRAI::tbox::Serializable:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Serializable ()
virtual ~Serializable ()
virtual void putToDatabase (Pointer< Database > db)=0

Detailed Description

Class Serializable is an abstract base class for those objects that can serialize their data to a database. This class provides one function that must be implemented in a derived subclass, putToDatabase(Pointer<Database> db), which should put its data members into the specified database object.

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.


Constructor & Destructor Documentation

SAMRAI::tbox::Serializable::Serializable  )  [inline]
 

The constructor for the serializable base class does nothing interesting.

SAMRAI::tbox::Serializable::~Serializable  )  [virtual]
 

The virtual destructor for the serializable base class does nothing interesting.


Member Function Documentation

virtual void SAMRAI::tbox::Serializable::putToDatabase Pointer< Database db  )  [pure virtual]
 

This method serializes the object by writing data to the specified database.

Implemented in SAMRAI::tbox::StatisticRestartDatabase.


The documentation for this class was generated from the following files:
Generated on Fri Dec 2 11:33:18 2005 for SAMRAI by  doxygen 1.4.2