Geophysical Inversion and Modelling Library v1.5.4
Loading...
Searching...
No Matches
GIMLI::BaseEntity Class Reference

Base Entity. More...

#include <baseentity.h>

+ 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

Set the entity id.

References id().

Referenced by GIMLI::Node::Node(), and GIMLI::DCMultiElectrodeModelling::searchElectrodes_().

◆ 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.

References tagged().

Referenced by tag(), and untag().

◆ setValid()

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

Set entity valid status.

References valid().

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

◆ tag()

void GIMLI::BaseEntity::tag ( )
inline

Tag the cell

References setTagged().

◆ tagged()

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

Return true if the cell is tagged

Referenced by setTagged().

◆ untag()

void GIMLI::BaseEntity::untag ( )
inline

Untag the cell

References setTagged().

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

◆ valid()

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

Return entity valid status.

Referenced by setValid().