NeoPZ
Public Member Functions | Static Public Member Functions | List of all members
TPZSavable Class Referenceabstract

This class defines the interface to save and restore objects from TPZStream objects. Persistency. More...

#include <TPZSavable.h>

Inherits TPZRegisterClassId.

Inherited by pzrefine::TPZRefCube, pzrefine::TPZRefLinear, pzrefine::TPZRefPoint, pzrefine::TPZRefPrism, pzrefine::TPZRefPyramid, pzrefine::TPZRefQuad, pzrefine::TPZRefTetrahedra, pzrefine::TPZRefTriangle, pztopology::TPZCube, pztopology::TPZLine, pztopology::TPZPoint, pztopology::TPZPrism, pztopology::TPZPyramid, pztopology::TPZQuadrilateral, pztopology::TPZTetrahedron, pztopology::TPZTriangle, TFad< Num, T >, TPZAnalysis, TPZAnalysis::TTablePostProcess, TPZArtDiff, TPZBlock< TVar >, TPZBlock< TVar >::TNode, TPZBlock< STATE >, TPZBndCond::TPZ_BCDefine, TPZChunkVector< T, EXP >, TPZChunkVector< TPZCompEl *, 10 >, TPZChunkVector< TPZConnect, 10 >, TPZChunkVector< TPZGeoEl *, 10 >, TPZChunkVector< TPZGeoNode, 10 >, TPZChunkVector< TPZGraphEl *, 10 >, TPZChunkVector< TPZGraphNode, 10 >, TPZCompEl [virtual], TPZCompMesh [virtual], TPZConnect, TPZConnect::TPZDepend, TPZCreateApproximationSpace, TPZDohrAssembly< TVar >, TPZDohrAssembly< STATE >, TPZDohrSubstruct< TVar >, TPZDohrSubstructCondense< TVar >, TPZDohrSubstructCondense< TTVar >, TPZElasticResponse, TPZElastoPlasticMem, TPZEquationFilter, TPZFileEqnStorage< TVar >, TPZFront< TVar >, TPZFront< STATE >, TPZFunction< TVar > [virtual], TPZFunction< REAL > [virtual], TPZFunction< STATE > [virtual], TPZGeoEl [virtual], TPZGeoElSide, TPZGeoElSideIndex, TPZGeoMesh, TPZGeoNode, TPZGraphEl, TPZGraphMesh, TPZGraphNode, TPZGuiInterface, TPZLadeKimThermoForceA, TPZLadeNelsonElasticResponse, TPZMaterial [virtual], TPZMaterialData, TPZMatrix< TVar >, TPZMatrix< REAL >, TPZMatrix< STATE >, TPZMatrix< TTVar >, TPZPermutation, TPZPlasticBase, TPZPlasticCriterion, TPZPlasticState< T >, TPZPlasticState< REAL >, TPZPlasticState< STATE >, TPZPorousElastoPlasticMem, TPZPostProcVar, TPZRefPattern, TPZRefPattern::TPZRefPatternPermute, TPZRenumbering, TPZSandlerDimaggioThermoForceA, TPZSolver< TVar >, TPZSolver< REAL >, TPZSolver< STATE >, TPZSolver< TTVar >, TPZStackEqnStorage< TVar >, TPZStructMatrixBase, TPZTensor< T >, TPZTensor< REAL >, TPZTensor< STATE >, TPZThermoForceA, and TPZTransform< T >.

Collaboration diagram for TPZSavable:
[legend]

Public Member Functions

 TPZSavable ()
 
virtual ~TPZSavable ()
 
virtual int ClassId () const =0
 Define the class id associated with the class. More...
 
virtual std::list< std::map< std::string, uint64_t > > VersionHistory () const
 
virtual std::pair< std::string, uint64_t > Version () const
 
virtual void Write (TPZStream &buf, int withclassid) const
 Writes this object to the TPZStream buffer. Include the classid if withclassid = true. More...
 
virtual void Read (TPZStream &buf, void *context)
 read objects from the stream More...
 
virtual bool Compare (TPZSavable *copy, bool override=false)
 Compares the object for identity with the object pointed to, eventually copy the object. More...
 
virtual bool Compare (TPZSavable *copy, bool override=false) const
 Compares the object for identity with the object pointed to, eventually copy the object. More...
 
- Public Member Functions inherited from TPZRegisterClassId
template<typename T >
 TPZRegisterClassId (int(T::*)() const)
 
 TPZRegisterClassId ()=default
 

Static Public Member Functions

static std::set< TPZRestoreClassBase * > & RestoreClassSet ()
 This static function guarantees that the gMap object is available when needed. More...
 
static std::map< int, TPZRestore_t > & ClassIdMap ()
 This static function guarantees that the gMap object is available when needed. More...
 
static std::pair< std::string, uint64_t > NeoPZVersion ()
 
static void Register (TPZRestoreClassBase *restore)
 
static void RegisterClassId (int classid, TPZRestore_t fun)
 
static TPZSavableCreateInstance (const int &classId)
 

Detailed Description

This class defines the interface to save and restore objects from TPZStream objects. Persistency.

This class defines the interface a class needs to implement (override) in order to become persistent Several static utility methods have been defined to make saving and restoring of vectors of objects easier

Definition at line 67 of file TPZSavable.h.


The documentation for this class was generated from the following files: