Geophysical Inversion and Modeling Library  v1.0.11-38-g7483f4dd
GIMLI::BaseEntity Class Reference

Base Entity. More...

+ Inheritance diagram for GIMLI::BaseEntity:

Public Member Functions

 BaseEntity (const BaseEntity &ent)
 
BaseEntityoperator= (const BaseEntity &ent)
 
virtual uint rtti () const
 
virtual bool valid () const
 
virtual void setValid (bool valid)
 
int id () const
 
void setId (int id)
 
void setMarker (int marker)
 
int marker () const
 
void setTagged (bool tagged)
 
void untag ()
 
void tag ()
 
bool tagged () const
 

Protected Attributes

int id_
 
bool valid_
 
int marker_
 
bool tagged_
 

Detailed Description

Base Entity.

The is a base entity which holds some basic informations. An identification number for the object, a validation status flag and a runtime type information (RTTI). This information will be inherited in many objects i.e. the mesh and data entitys.

Member Function Documentation

◆ id()

◆ rtti()

◆ setId()

void GIMLI::BaseEntity::setId ( int  id)
inline

◆ setTagged()

void GIMLI::BaseEntity::setTagged ( bool  tagged)
inline

Userflag to mark the entity for something you want. This will be used internal while cell search so be carefully.

◆ setValid()

virtual void GIMLI::BaseEntity::setValid ( bool  valid)
inlinevirtual

Set entity valid status.

Referenced by GIMLI::Electrode::Electrode().

◆ tag()

void GIMLI::BaseEntity::tag ( )
inline

Tag the cell

Referenced by GIMLI::Mesh::findNearestNode().

◆ tagged()

bool GIMLI::BaseEntity::tagged ( ) const
inline

Return true if the cell is tagged

Referenced by GIMLI::Mesh::findNearestNode().

◆ untag()

void GIMLI::BaseEntity::untag ( )
inline

Untag the cell

Referenced by GIMLI::Mesh::findCell().

◆ valid()

virtual bool GIMLI::BaseEntity::valid ( ) const
inlinevirtual

Return entity valid status.

Referenced by GIMLI::Electrode::Electrode().