NeoPZ
Public Member Functions | Public Attributes | List of all members
TPZBlock< TVar >::TNode Struct Reference

Defines a node. More...

Inheritance diagram for TPZBlock< TVar >::TNode:
[legend]
Collaboration diagram for TPZBlock< TVar >::TNode:
[legend]

Public Member Functions

 TNode ()
 
int ClassId () const override
 Define the class id associated with the class. More...
 
void Read (TPZStream &buf, void *context) override
 read objects from the stream More...
 
void Write (TPZStream &buf, int withclassid) const override
 Writes this object to the TPZStream buffer. Include the classid if withclassid = true. More...
 
- Public Member Functions inherited from TPZSavable
 TPZSavable ()
 
virtual ~TPZSavable ()
 
virtual std::list< std::map< std::string, uint64_t > > VersionHistory () const
 
virtual std::pair< std::string, uint64_t > Version () const
 
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
 

Public Attributes

int pos
 
int dim
 

Additional Inherited Members

- Static Public Member Functions inherited from TPZSavable
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

template<class TVar>
struct TPZBlock< TVar >::TNode

Defines a node.

Definition at line 198 of file pzblock.h.

Constructor & Destructor Documentation

◆ TNode()

template<class TVar>
TPZBlock< TVar >::TNode::TNode ( )
inline

Definition at line 204 of file pzblock.h.

Member Function Documentation

◆ ClassId()

template<class TVar>
int TPZBlock< TVar >::TNode::ClassId ( ) const
inlineoverridevirtual

Define the class id associated with the class.

This id has to be unique for all classes A non unique id is flagged at the startup of the program

Implements TPZSavable.

Definition at line 209 of file pzblock.h.

References Hash(), TPZBlock< TVar >::TNode::Read(), and TPZBlock< TVar >::TNode::Write().

◆ Read()

template<class TVar >
void TPZBlock< TVar >::TNode::Read ( TPZStream buf,
void *  context 
)
overridevirtual

read objects from the stream

Reimplemented from TPZSavable.

Definition at line 472 of file pzblock.cpp.

References TPZStream::Read().

Referenced by TPZBlock< TVar >::TNode::ClassId().

◆ Write()

template<class TVar >
void TPZBlock< TVar >::TNode::Write ( TPZStream buf,
int  withclassid 
) const
overridevirtual

Writes this object to the TPZStream buffer. Include the classid if withclassid = true.

Writes this object to the TPZStream buffer. Include the classid if withclassid = true

Reimplemented from TPZSavable.

Definition at line 478 of file pzblock.cpp.

References TPZStream::Write().

Referenced by TPZBlock< TVar >::TNode::ClassId().

Member Data Documentation

◆ dim

template<class TVar>
int TPZBlock< TVar >::TNode::dim

Dimension of node

Definition at line 202 of file pzblock.h.

◆ pos

template<class TVar>
int TPZBlock< TVar >::TNode::pos

Position of node

Definition at line 201 of file pzblock.h.


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