Logo  0.95.0-final
Finite Element Embedded Library and Language in C++
Feel++ Feel++ on Github Feel++ community
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Feel::BareItemsHandler< BareItem > Class Template Reference

#include <bareitems.hpp>

Detailed Description

template<typename BareItem>
class Feel::BareItemsHandler< BareItem >

Bare Items Handler.

This class handles mesh bare edges and faces construction. Used only in mesh builders A BareItemsHandler is a specialisation of a STL map which holds the pair formed by a bareitem and its size_type. The size_type is automatically generated if one uses the method addIfNotThere

Inherits map< BareItem, Feel::size_type, cmpBareItem< BareItem > >.

Public Types

typedef container::const_iterator const_iterator
 
typedef std::map< BareItem,
Feel::size_type, cmpBareItem
< BareItem > > 
container
 
typedef container::iterator iterator
 
typedef container::size_type size_type
 
typedef std::pair< const
BareItem, size_type > 
value_type
 

Public Member Functions

std::pair< size_type, bool > addIfNotThere (BareItem const &)
 if not there adds it, and sets size_type id
 
std::pair< size_type, bool > addIfNotThere (BareItem const &, const size_type id)
 if it is there take it out (Id is lost)
 
 BareItemsHandler ()
 is the item there? I just ask
 
size_type howMany () const
 Max size_type currently in use.
 
size_type id (BareItem const &) const
 To modify size_type of bareitem item in the list.
 
bool isThere (BareItem const &) const
 Returns size_type of a BareItem. 0 if not there.
 
bool isThereDel (BareItem const &)
 The # of entities ones actually stored.
 
size_type maxId () const
 Writes info in output.
 
bool setId (BareItem const &item, size_type const i)
 if not there adds it, the item size_type is autogenerated
 
void showMe () const
 

The documentation for this class was generated from the following file:

Generated on Sun Dec 22 2013 13:11:17 for Feel++ by doxygen 1.8.5