LifeV
|
Marker - Base marker class. More...
#include <Marker.hpp>
Protected Attributes | |
markerID_Type | M_markerID |
Public Types | |
typedef MarkerIDPolicy | MarkerIDPolicy_Type |
The policy used by this marker. More... | |
Constructor & Destructor | |
Marker () | |
Empty Constructor. More... | |
Marker (markerID_Type &p) | |
Constructor given the marker ID. More... | |
Marker (Marker< MarkerIDPolicy > const &markerBase) | |
Copy Constructor. More... | |
virtual | ~Marker () |
Destructor. More... | |
Methods | |
bool | isMarkerSet () const |
It enquires if marker ID is different than the null marker ID. More... | |
bool | isMarkerUnset () const |
It enquires if marker ID is different than the null marker ID. More... | |
bool | hasEqualMarkerID (markerID_Type const &markerID) const |
Compares marker IDs. More... | |
virtual void | showMe (std::ostream &output=std::cout) const |
Display information about the marker object. More... | |
Setters | |
markerID_Type | setMarkerID (markerID_Type const &markerID) |
Set marker to the given value. More... | |
markerID_Type | updateMarkerID (markerID_Type const &markerID) |
Set marker to the given value only if unset. More... | |
markerID_Type | setStrongerMarkerID (markerID_Type const &markerID1, markerID_Type const &markerID2) |
Sets the marker ID to the stronger marker ID of two given markers. More... | |
markerID_Type | setWeakerMarkerID (markerID_Type const &markerID1, markerID_Type const &markerID2) |
Sets the marker ID to the weaker marker ID of two given markers. More... | |
markerID_Type | setStrongerMarkerID (markerID_Type const &markerID) |
Sets to the strongest marker ID. More... | |
markerID_Type | setWeakerMarkerID (markerID_Type const &markerID) |
Sets to the weaker marker ID. More... | |
void | unsetMarkerID () |
Put marker to NULLFLAG. More... | |
Get Methods | |
markerID_Type | markerID () const |
Extracts the entityFlag associated to the marked entity. More... | |
static markerID_Type const & | nullMarkerID () |
Returns the null marker ID. More... | |
Marker - Base marker class.
It stores an object of markerID_Type which may be used for marking a geometric entity. The typical use is to specify boundary conditions or material properties associated with the entity. The actual boundary conditions will be handled in the DOF class. During the creation of a field, the markers are processed to furnish the correct boundary conditions. The template argument MarkerIDPolicy defaults to MarkerIDStandardPolicy and it defines the way ambiguities in the Marker ID definition are treated. The template argument FlagPolicy defaults to EntityFlagStandardPolicy and it defines the way ambiguities in the flag definition are treated.
Marker is a concrete base class which also implements basic tool to operate on the markerID. All geometric entities stored in a mesh derives from it, thus it may be used to extend the capabilities of a geometric entity, for any purpose.
The default markers used by RegionMesh are contained in MarkerDefinitions.hpp
Definition at line 148 of file Marker.hpp.
typedef MarkerIDPolicy MarkerIDPolicy_Type |
The policy used by this marker.
Definition at line 155 of file Marker.hpp.
Marker | ( | ) |
Empty Constructor.
Definition at line 261 of file Marker.hpp.
|
explicit |
Constructor given the marker ID.
Definition at line 267 of file Marker.hpp.
Copy Constructor.
Definition at line 273 of file Marker.hpp.
|
inlinevirtual |
Destructor.
Definition at line 171 of file Marker.hpp.
|
inline |
It enquires if marker ID is different than the null marker ID.
Definition at line 340 of file Marker.hpp.
|
inline |
It enquires if marker ID is different than the null marker ID.
Definition at line 346 of file Marker.hpp.
|
inline |
Compares marker IDs.
It returns true if the marker ID is equal to the argument
Definition at line 358 of file Marker.hpp.
|
virtual |
Display information about the marker object.
Definition at line 364 of file Marker.hpp.
|
inline |
Set marker to the given value.
Definition at line 291 of file Marker.hpp.
markerID_Type updateMarkerID | ( | markerID_Type const & | markerID | ) |
Set marker to the given value only if unset.
Definition at line 297 of file Marker.hpp.
markerID_Type setStrongerMarkerID | ( | markerID_Type const & | markerID1, |
markerID_Type const & | markerID2 | ||
) |
Sets the marker ID to the stronger marker ID of two given markers.
Definition at line 306 of file Marker.hpp.
markerID_Type setWeakerMarkerID | ( | markerID_Type const & | markerID1, |
markerID_Type const & | markerID2 | ||
) |
Sets the marker ID to the weaker marker ID of two given markers.
Definition at line 313 of file Marker.hpp.
markerID_Type setStrongerMarkerID | ( | markerID_Type const & | markerID | ) |
Sets to the strongest marker ID.
If marker ID is not set, is sets it to that of the argument, otherwise it sets it to the stronger ID between the stored one and the one provided by the argument.
Definition at line 320 of file Marker.hpp.
markerID_Type setWeakerMarkerID | ( | markerID_Type const & | markerID | ) |
Sets to the weaker marker ID.
If marker ID is not set, is sets it to that of the argument, otherwise it sets it to the weaker ID between the stored one and the one provided by the argument.
Definition at line 330 of file Marker.hpp.
|
inline |
Put marker to NULLFLAG.
Definition at line 352 of file Marker.hpp.
|
inline |
Extracts the entityFlag associated to the marked entity.
For historical reason this method is called marker, while it should be called markerID() instead. Refactoring however would involve changing too many files and it has been postponed. Just remember that markerID() does not return a Marker!
Definition at line 279 of file Marker.hpp.
|
static |
Returns the null marker ID.
Definition at line 285 of file Marker.hpp.
|
protected |
Definition at line 251 of file Marker.hpp.