NeoPZ
TPZRestoredInstance.h
Go to the documentation of this file.
1 #ifndef TPZRESTOREOBJ_H
2 #define TPZRESTOREOBJ_H
3 
4 #include <ostream> // for operator<<
5 #include "pzmanvector.h" // for TPZManVector
6 #include "pzvec.h" // for TPZVec
7 #include "tpzautopointer.h"
8 #include <memory>
9 
10 class TPZSavable;
12 
14  public:
17  virtual ~TPZRestoredInstance();
18  void SetInstance(TPZSavable *);
21  std::shared_ptr<TPZSavable> GetSharedPtrToMyObj();
23  void SetObjId(const uint64_t &objId);
24 // uint64_t GetObjId() const;
25  void SetClassId(const int &classId);
26  int GetClassId() const;
27  void ResetReadStatus();
28  bool IsAlreadyRead() const;
29  void SetRead();
30  protected:
34  std::shared_ptr<TPZSavable> mSharedPtrToInstance;
36 };
37 
38 #endif // TPZRESTOREOBJ_H
std::shared_ptr< TPZSavable > mSharedPtrToInstance
TPZAutoPointer< TPZSavable > mAutoPointerToInstance
Class for creating a bidirectional circular buffer.
TPZVec< int > & MyPointersVec()
Templated vector implementation.
int GetClassId() const
TPZAutoPointer< TPZSavable > GetAutoPointerToMyObj()
Free store vector implementation.
void SetObjId(const uint64_t &objId)
Contains declaration of the TPZAutoPointer class which has Increment and Decrement actions are mutexe...
void SetClassId(const int &classId)
std::shared_ptr< TPZSavable > GetSharedPtrToMyObj()
TPZManVector< int, 3 > mPointersVec
TPZSavable * GetPointerToMyObj() const
This class defines the interface to save and restore objects from TPZStream objects. Persistency.
Definition: TPZSavable.h:67
void SetInstance(TPZSavable *)