NeoPZ
Public Member Functions | Public Attributes | List of all members
TPZConnect::TPZDepend Class Reference

Structure to reference dependency. More...

#include <pzconnect.h>

Inheritance diagram for TPZConnect::TPZDepend:
[legend]
Collaboration diagram for TPZConnect::TPZDepend:
[legend]

Public Member Functions

 TPZDepend ()
 
 TPZDepend (int64_t DepConnectIndex, TPZFMatrix< REAL > &depmat, int64_t ipos, int64_t jpos, int isize, int jsize)
 
 TPZDepend (const TPZDepend &copy)
 
 TPZDepend (int64_t connectindex)
 
 ~TPZDepend ()
 
TPZDependHasDepend (int64_t DepConnectIndex)
 
TPZDependRemoveDepend (TPZDepend *Ptr)
 
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...
 
void CopyFrom (TPZDepend *orig, std::map< int64_t, int64_t > &gl2lcIdx)
 Copy a depend data structure to a clone depend in a clone mesh. 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

int64_t fDepConnectIndex
 
TPZFNMatrix< 50, REAL > fDepMatrix
 
TPZDependfNext
 

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

Structure to reference dependency.

Definition at line 67 of file pzconnect.h.

Constructor & Destructor Documentation

◆ TPZDepend() [1/4]

TPZConnect::TPZDepend::TPZDepend ( )

Definition at line 266 of file pzconnect.cpp.

Referenced by CopyFrom(), TPZConnect::CopyFrom(), and TPZDepend().

◆ TPZDepend() [2/4]

TPZConnect::TPZDepend::TPZDepend ( int64_t  DepConnectIndex,
TPZFMatrix< REAL > &  depmat,
int64_t  ipos,
int64_t  jpos,
int  isize,
int  jsize 
)

Definition at line 270 of file pzconnect.cpp.

References fDepConnectIndex, fDepMatrix, and fNext.

◆ TPZDepend() [3/4]

TPZConnect::TPZDepend::TPZDepend ( const TPZDepend copy)

Definition at line 278 of file pzconnect.cpp.

References fNext, and TPZDepend().

◆ TPZDepend() [4/4]

TPZConnect::TPZDepend::TPZDepend ( int64_t  connectindex)

Definition at line 283 of file pzconnect.cpp.

◆ ~TPZDepend()

TPZConnect::TPZDepend::~TPZDepend ( )

Definition at line 288 of file pzconnect.cpp.

References fNext.

Member Function Documentation

◆ ClassId()

int TPZConnect::TPZDepend::ClassId ( ) const
overridevirtual

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 406 of file pzconnect.cpp.

References Hash().

◆ CopyFrom()

void TPZConnect::TPZDepend::CopyFrom ( TPZDepend orig,
std::map< int64_t, int64_t > &  gl2lcIdx 
)

Copy a depend data structure to a clone depend in a clone mesh.

Parameters
origoriginal depend to be copied
gl2lcIdxglobal to local indexes map

Definition at line 475 of file pzconnect.cpp.

References CopyFrom(), fDepConnectIndex, fDepMatrix, fNext, LOGPZ_ERROR, and TPZDepend().

Referenced by CopyFrom(), TPZConnect::CopyFrom(), and TPZConnect::FirstDepend().

◆ HasDepend()

TPZConnect::TPZDepend * TPZConnect::TPZDepend::HasDepend ( int64_t  DepConnectIndex)

◆ Read()

void TPZConnect::TPZDepend::Read ( TPZStream buf,
void *  context 
)
overridevirtual

read objects from the stream

Reimplemented from TPZSavable.

Definition at line 416 of file pzconnect.cpp.

References fDepConnectIndex, fDepMatrix, fNext, TPZPersistenceManager::GetInstance(), TPZStream::Read(), and TPZFNMatrix< N, TVar >::Read().

Referenced by TPZConnect::FirstDepend().

◆ RemoveDepend()

TPZConnect::TPZDepend * TPZConnect::TPZDepend::RemoveDepend ( TPZDepend Ptr)

Definition at line 298 of file pzconnect.cpp.

References fNext, test::res, and substruct_tst14.test::run.

Referenced by TPZConnect::NElConnected(), and TPZConnect::RemoveDepend().

◆ Write()

void TPZConnect::TPZDepend::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 410 of file pzconnect.cpp.

References fDepConnectIndex, fDepMatrix, fNext, TPZStream::Write(), TPZFNMatrix< N, TVar >::Write(), and TPZPersistenceManager::WritePointer().

Referenced by TPZConnect::FirstDepend().

Member Data Documentation

◆ fDepConnectIndex

int64_t TPZConnect::TPZDepend::fDepConnectIndex

◆ fDepMatrix

TPZFNMatrix<50,REAL> TPZConnect::TPZDepend::fDepMatrix

◆ fNext

TPZDepend* TPZConnect::TPZDepend::fNext

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