NeoPZ
|
Utility class which represents an element index with its side. Geometry. More...
#include <pzgeoelside.h>
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) | |
TPZGeoElSideIndex * | Clone () |
To clone current object. More... | |
TPZGeoElSideIndex & | operator= (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) |
TPZGeoEl * | Element (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 TPZSavable * | CreateInstance (const int &classId) |
Utility class which represents an element index with its side. Geometry.
Definition at line 33 of file pzgeoelside.h.
|
inline |
|
inline |
Simple constructor.
Definition at line 356 of file pzgeoelside.h.
References fGeoElIndex, and fSide.
Referenced by Clone().
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().
|
inline |
Definition at line 361 of file pzgeoelside.h.
References fGeoElIndex, and fSide.
TPZGeoElSideIndex::TPZGeoElSideIndex | ( | const TPZGeoElSide & | side | ) |
Definition at line 39 of file pzgeoelside.cpp.
References TPZGeoElSide::Element(), TPZGeoEl::Index(), and TPZGeoElSide::Side().
|
inline |
Definition at line 366 of file pzgeoelside.h.
References operator=().
|
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().
|
inline |
To clone current object.
Definition at line 370 of file pzgeoelside.h.
References TPZGeoElSideIndex().
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().
|
inline |
Definition at line 391 of file pzgeoelside.h.
References fGeoElIndex.
Referenced by TPZGeoElRefLess< TGeo >::NeighbourIndex(), operator bool(), and TPZGeoElSide::TPZGeoElSide().
|
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().
|
inline |
Redefines operator = attribuition to TPZGeoElSideIndex object.
Definition at line 374 of file pzgeoelside.h.
References fGeoElIndex, and fSide.
Referenced by TPZGeoElSideIndex().
|
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().
void TPZGeoElSideIndex::SetElement | ( | TPZGeoEl * | geoel | ) |
Definition at line 46 of file pzgeoelside.cpp.
References TPZGeoEl::Index().
Referenced by operator bool().
|
inline |
Definition at line 395 of file pzgeoelside.h.
References fGeoElIndex.
Referenced by operator bool().
|
inline |
|
inline |
Definition at line 380 of file pzgeoelside.h.
References fGeoElIndex, and fSide.
Referenced by operator bool(), and TPZGeoElSide::TPZGeoElSide().
|
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().
|
private |
Definition at line 35 of file pzgeoelside.h.
Referenced by ElementIndex(), operator=(), SetElementIndex(), Side(), and TPZGeoElSideIndex().
|
private |
Definition at line 36 of file pzgeoelside.h.
Referenced by operator=(), SetSide(), Side(), TPZGeoElSide::Side(), and TPZGeoElSideIndex().