NeoPZ
Public Member Functions | Private Attributes | List of all members
TPZGeoElSideIndex Class Reference

Utility class which represents an element index with its side. Geometry. More...

#include <pzgeoelside.h>

Inheritance diagram for TPZGeoElSideIndex:
[legend]
Collaboration diagram for TPZGeoElSideIndex:
[legend]

Public Member Functions

 ~TPZGeoElSideIndex ()
 Destructor. More...
 
 TPZGeoElSideIndex ()
 Simple constructor. More...
 
 TPZGeoElSideIndex (TPZGeoEl *gel, int side)
 Constructor with geometric element referenced and corresponding side. More...
 
 TPZGeoElSideIndex (int64_t gelindex, int side)
 
 TPZGeoElSideIndex (const TPZGeoElSide &side)
 
 TPZGeoElSideIndex (const TPZGeoElSideIndex &cp)
 
TPZGeoElSideIndexClone ()
 To clone current object. More...
 
TPZGeoElSideIndexoperator= (const TPZGeoElSideIndex &A)
 Redefines operator = attribuition to TPZGeoElSideIndex object. More...
 
 operator bool () const
 cast to bool to indicate whether it is an initialized side More...
 
int Side () const
 
void SetSide (int side)
 
TPZGeoElElement (const TPZGeoMesh *mesh) const
 
void SetElement (TPZGeoEl *geoel)
 
int64_t ElementIndex () const
 
void SetElementIndex (int64_t i)
 
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
 

Private Attributes

int64_t fGeoElIndex
 
int fSide
 

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

Utility class which represents an element index with its side. Geometry.

Definition at line 33 of file pzgeoelside.h.

Constructor & Destructor Documentation

◆ ~TPZGeoElSideIndex()

TPZGeoElSideIndex::~TPZGeoElSideIndex ( )
inline

Destructor.

Implementing TPZGeoElSideIndex methods

Definition at line 352 of file pzgeoelside.h.

◆ TPZGeoElSideIndex() [1/5]

TPZGeoElSideIndex::TPZGeoElSideIndex ( )
inline

Simple constructor.

Definition at line 356 of file pzgeoelside.h.

References fGeoElIndex, and fSide.

Referenced by Clone().

◆ TPZGeoElSideIndex() [2/5]

TPZGeoElSideIndex::TPZGeoElSideIndex ( TPZGeoEl gel,
int  side 
)

Constructor with geometric element referenced and corresponding side.

Definition at line 33 of file pzgeoelside.cpp.

References TPZGeoEl::Index().

◆ TPZGeoElSideIndex() [3/5]

TPZGeoElSideIndex::TPZGeoElSideIndex ( int64_t  gelindex,
int  side 
)
inline

Definition at line 361 of file pzgeoelside.h.

References fGeoElIndex, and fSide.

◆ TPZGeoElSideIndex() [4/5]

TPZGeoElSideIndex::TPZGeoElSideIndex ( const TPZGeoElSide side)

Definition at line 39 of file pzgeoelside.cpp.

References TPZGeoElSide::Element(), TPZGeoEl::Index(), and TPZGeoElSide::Side().

◆ TPZGeoElSideIndex() [5/5]

TPZGeoElSideIndex::TPZGeoElSideIndex ( const TPZGeoElSideIndex cp)
inline

Definition at line 366 of file pzgeoelside.h.

References operator=().

Member Function Documentation

◆ ClassId()

int TPZGeoElSideIndex::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 51 of file pzgeoelside.cpp.

References Hash().

Referenced by operator bool(), and TPZGeoElSide::operator bool().

◆ Clone()

TPZGeoElSideIndex * TPZGeoElSideIndex::Clone ( )
inline

To clone current object.

Definition at line 370 of file pzgeoelside.h.

References TPZGeoElSideIndex().

◆ Element()

TPZGeoEl * TPZGeoElSideIndex::Element ( const TPZGeoMesh mesh) const

Definition at line 1327 of file pzgeoelside.cpp.

References TPZGeoMesh::ElementVec().

Referenced by operator bool(), and TPZGeoElSide::TPZGeoElSide().

◆ ElementIndex()

int64_t TPZGeoElSideIndex::ElementIndex ( ) const
inline

◆ operator bool()

TPZGeoElSideIndex::operator bool ( ) const
inline

cast to bool to indicate whether it is an initialized side

Definition at line 57 of file pzgeoelside.h.

References ClassId(), Element(), ElementIndex(), Read(), SetElement(), SetElementIndex(), SetSide(), Side(), and Write().

◆ operator=()

TPZGeoElSideIndex & TPZGeoElSideIndex::operator= ( const TPZGeoElSideIndex A)
inline

Redefines operator = attribuition to TPZGeoElSideIndex object.

Definition at line 374 of file pzgeoelside.h.

References fGeoElIndex, and fSide.

Referenced by TPZGeoElSideIndex().

◆ Read()

void TPZGeoElSideIndex::Read ( TPZStream buf,
void *  context 
)
overridevirtual

read objects from the stream

Reimplemented from TPZSavable.

Definition at line 55 of file pzgeoelside.cpp.

References TPZStream::Read().

Referenced by operator bool(), TPZGeoElSide::operator bool(), pzgeom::TPZGeoBlend< TGeo >::Read(), and TPZGeoElRefLess< TGeo >::Read().

◆ SetElement()

void TPZGeoElSideIndex::SetElement ( TPZGeoEl geoel)

Definition at line 46 of file pzgeoelside.cpp.

References TPZGeoEl::Index().

Referenced by operator bool().

◆ SetElementIndex()

void TPZGeoElSideIndex::SetElementIndex ( int64_t  i)
inline

Definition at line 395 of file pzgeoelside.h.

References fGeoElIndex.

Referenced by operator bool().

◆ SetSide()

void TPZGeoElSideIndex::SetSide ( int  side)
inline

Definition at line 387 of file pzgeoelside.h.

References fSide.

Referenced by operator bool().

◆ Side()

int TPZGeoElSideIndex::Side ( ) const
inline

Definition at line 380 of file pzgeoelside.h.

References fGeoElIndex, and fSide.

Referenced by operator bool(), and TPZGeoElSide::TPZGeoElSide().

◆ Write()

void TPZGeoElSideIndex::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 60 of file pzgeoelside.cpp.

References TPZStream::Write().

Referenced by operator bool(), TPZGeoElSide::operator bool(), pzgeom::TPZGeoBlend< TGeo >::Write(), and TPZGeoElRefLess< TGeo >::Write().

Member Data Documentation

◆ fGeoElIndex

int64_t TPZGeoElSideIndex::fGeoElIndex
private

Definition at line 35 of file pzgeoelside.h.

Referenced by ElementIndex(), operator=(), SetElementIndex(), Side(), and TPZGeoElSideIndex().

◆ fSide

int TPZGeoElSideIndex::fSide
private

Definition at line 36 of file pzgeoelside.h.

Referenced by operator=(), SetSide(), Side(), TPZGeoElSide::Side(), and TPZGeoElSideIndex().


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