40 #define MESHENTITY_H 1
42 #include <lifev/core/LifeV.hpp> 166 void showMe ( std::ostream& output = std::cout )
const;
297 template<
int Selector>
300 template<
int Selector>
335 template<
int Selector>
340 return getID<Selector> (entity);
This is the base class to store basic properties of any mesh entity.
void unSetFlag(const flag_Type &flag)
Remove a flag.
ID getID(MeshEntity const &)
void replaceFlag(const flag_Type &flag)
Replace method for the entity flag.
MeshEntity()
Empty Constructor.
uint32_type flag_Type
bit-flag with up to 32 different flags
MeshEntity(const ID &id, const flag_Type &flag=EntityFlags::DEFAULT)
Constructor with a single value for both identifiers.
flag_Type turnOn(flag_Type const &inputFlag, flag_Type const &refFlag)
turns on the refFlag active bits in inputFlag
virtual ~MeshEntity()
Destructor.
const flag_Type & flag() const
returns the entity flag
const flag_Type ALL(0x7F)
void setFlag(const flag_Type &flag)
Sets a flag.
void setID< MeshEntity::LOCALID >(MeshEntity &entity, const ID id)
Specialization for local id.
MeshEntity(const ID &id, const bool &boundary)
backward-compatible constructor
flag_Type turnOff(flag_Type const &inputFlag, flag_Type const &refFlag)
turns off the refFlag active bits in inputFlag
MeshEntity(const ID &id, const ID &lid, const flag_Type &flag=EntityFlags::DEFAULT)
Full constructor, where both identifiers are specified.
Generic definition of the functor to extract the local or global ID.
void updateInverseJacobian(const UInt &iQuadPt)
bool testOneSet(flag_Type const &inputFlag, flag_Type const &refFlag)
returns true if at least one flag set in refFlag is set in inputFlag
void setLocalId(const ID &id)
Method to set the local identifier.
ID operator()(MeshEntity const &entity) const
const flag_Type VERTEX(0x20)
const flag_Type OVERLAP(0x08)
const flag_Type SUBDOMAIN_INTERFACE(0x04)
void showMe(std::ostream &output=std::cout) const
Displays the informations stored by this class.
bool isOwned() const
Tells if the entity is owned by current process.
const flag_Type PHYSICAL_BOUNDARY(0x01)
const flag_Type DEFAULT(0x00)
bool boundary() const
Tells if it is on the boundary.
void setID(MeshEntity &, const ID)
Generic definition of setter.
const flag_Type GHOST(0x40)
const ID & localId() const
Method to get the local identifier.
void setId(const ID &id)
Method to set the global identifier.
flag related free functions and functors
const flag_Type INTERNAL_INTERFACE(0x02)
available bit-flags for different geometric properties
SwitchId
Indicator for local or global id.
std::string name(const flag_Type &flag)
bool testOneNotSet(flag_Type const &inputFlag, flag_Type const &refFlag)
returns false if at least one flag set in refFlag is set in inputFlag
void setBoundary(const bool &boundary)
Set method for the boundary indicator.
const flag_Type CUTTED(0x10)
uint32_type UInt
generic unsigned integer (used mainly for addressing)
const ID & id() const
Method to get the global identifier.