LifeV
|
MeshElementBareHandler class - Class to handle bare edges and faces construction. More...
#include <MeshElementBare.hpp>
Private Attributes | |
UInt | M_idCount |
Public Types | |
typedef BareItemType | bareItem_Type |
typedef std::map< bareItem_Type, UInt, cmpBareItem< bareItem_Type > > | container_Type |
typedef container_Type::iterator | containerIterator_Type |
typedef container_Type::const_iterator | containerConstIterator_Type |
typedef std::pair< const bareItem_Type, UInt > | value_Type |
Constructors & Destructor | |
MeshElementBareHandler () | |
Empty Constructor. More... | |
Methods | |
bool | isThere (bareItem_Type const &item) const |
Method to ask if an item already exists. More... | |
std::pair< ID, bool > | addIfNotThere (bareItem_Type const &item) |
Method that adds a BareItem if it is not already there and automatically generates the ID. More... | |
std::pair< ID, bool > | addIfNotThere (bareItem_Type const &item, const ID id) |
Method that adds a bareItem_Type if it is not already there and assigns the ID. More... | |
bool | deleteIfThere (bareItem_Type const &item) |
Method that removes a bareItem_Type if it is there (the ID is then lost) More... | |
bool | isThereDel (bareItem_Type const &item) |
Method that removes a bareItem_Type if it is there (the ID is then lost) More... | |
UInt | howMany () const |
Method that counts how many items are stored. More... | |
UInt | maxId () const |
Method that returns the maximum id currently in use. More... | |
void | showMe () const |
Method that writes info in output. More... | |
ID | id (bareItem_Type const &item) const |
Method that returns the ID of a BareItem. It returns 0 if the item doesn't exist. More... | |
Set Methods | |
bool | setId (bareItem_Type const &item, const ID &id) |
Method that returns the ID of a BareItem. It returns 0 if the item doesn't exist. More... | |
bool | setId (bareItem_Type const &item, ID const id) |
Method that returns the ID of a BareItem. It returns 0 if the item doesn't exist. More... | |
MeshElementBareHandler class - Class to handle bare edges and faces construction.
This class handles mesh bare edges and faces construction. Used only in mesh builders A MeshElementBareHandler is a specialisation of a STL map which holds the pair formed by a bareitem and its ID. The ID is automatically generated if one uses the method addIfNotThere
Definition at line 557 of file MeshElementBare.hpp.
typedef BareItemType bareItem_Type |
Definition at line 562 of file MeshElementBare.hpp.
typedef std::map<bareItem_Type, UInt, cmpBareItem<bareItem_Type> > container_Type |
Definition at line 563 of file MeshElementBare.hpp.
typedef container_Type::iterator containerIterator_Type |
Definition at line 564 of file MeshElementBare.hpp.
typedef container_Type::const_iterator containerConstIterator_Type |
Definition at line 565 of file MeshElementBare.hpp.
typedef std::pair<const bareItem_Type, UInt> value_Type |
Definition at line 566 of file MeshElementBare.hpp.
Empty Constructor.
Definition at line 681 of file MeshElementBare.hpp.
|
inline |
Method to ask if an item already exists.
item | Item we are looking for |
Definition at line 691 of file MeshElementBare.hpp.
|
inline |
Method that adds a BareItem if it is not already there and automatically generates the ID.
item | Item to be added |
Definition at line 699 of file MeshElementBare.hpp.
|
inline |
Method that adds a bareItem_Type if it is not already there and assigns the ID.
item | Item to be added |
id | ID to be assigned to the item |
Definition at line 713 of file MeshElementBare.hpp.
bool deleteIfThere | ( | bareItem_Type const & | item | ) |
Method that removes a bareItem_Type if it is there (the ID is then lost)
item | Item to be removed |
Definition at line 722 of file MeshElementBare.hpp.
bool isThereDel | ( | bareItem_Type const & | item | ) |
Method that removes a bareItem_Type if it is there (the ID is then lost)
item | Item to be removed |
|
inline |
Method that counts how many items are stored.
Definition at line 730 of file MeshElementBare.hpp.
|
inline |
Method that returns the maximum id currently in use.
Definition at line 625 of file MeshElementBare.hpp.
|
inline |
Method that writes info in output.
Definition at line 737 of file MeshElementBare.hpp.
|
inline |
Method that returns the ID of a BareItem. It returns 0 if the item doesn't exist.
item | Item we are looking for |
Definition at line 748 of file MeshElementBare.hpp.
bool setId | ( | bareItem_Type const & | item, |
const ID & | id | ||
) |
Method that returns the ID of a BareItem. It returns 0 if the item doesn't exist.
item | Item to modify |
id | new ID to assign to item |
|
inline |
Method that returns the ID of a BareItem. It returns 0 if the item doesn't exist.
item | Item to modify |
id | new ID to assign to item |
Definition at line 768 of file MeshElementBare.hpp.
|
private |
Definition at line 670 of file MeshElementBare.hpp.