Hermes2D  3.0
Hermes::Hermes2D::Mesh::MarkersConversion Class Referenceabstract
+ Inheritance diagram for Hermes::Hermes2D::Mesh::MarkersConversion:

Classes

struct  IntValid
 Struct for return type of get_internal_marker(). More...
 
struct  StringValid
 Struct for return type of get_user_marker(). More...
 

Public Types

enum  MarkersConversionType { HERMES_ELEMENT_MARKERS_CONVERSION = 0, HERMES_BOUNDARY_MARKERS_CONVERSION = 1 }
 

Public Member Functions

int insert_marker (std::string user_marker)
 
StringValid get_user_marker (int internal_marker) const
 
IntValid get_internal_marker (std::string user_marker) const
 Find an internal marker for this user_marker.
 
virtual MarkersConversionType get_type () const =0
 
int size () const
 

Protected Attributes

int min_marker_unused
 
std::map< int, std::string > conversion_table
 
std::map< std::string, int > conversion_table_inverse
 

Friends

class Space< double >
 
class Space< std::complex< double > >
 
class Mesh
 

Detailed Description

Definition at line 230 of file mesh.h.

Member Function Documentation

Mesh::MarkersConversion::StringValid Hermes::Hermes2D::Mesh::MarkersConversion::get_user_marker ( int  internal_marker) const

Lookup functions. Find a user marker for this internal marker.

Definition at line 1969 of file mesh.cpp.

int Hermes::Hermes2D::Mesh::MarkersConversion::insert_marker ( std::string  user_marker)

Function inserting a marker into conversion_table_for_element_markers. This function controls if this user_marker x internal_marker is already present, and if not, it inserts the std::pair.

Returns
The internal marker where user_marker was inserted.

Definition at line 1953 of file mesh.cpp.

Referenced by Hermes::Hermes2D::Mesh::create().

Member Data Documentation

std::map<int, std::string> Hermes::Hermes2D::Mesh::MarkersConversion::conversion_table
protected

Conversion tables between the std::string markers the user sets and the markers used internally as members of Elements, Nodes.

Definition at line 283 of file mesh.h.

Referenced by Hermes::Hermes2D::Mesh::free().

std::map<std::string, int> Hermes::Hermes2D::Mesh::MarkersConversion::conversion_table_inverse
protected

Inverse tables, so that it is possible to search using either the internal representation, or the user std::string value.

Definition at line 287 of file mesh.h.

Referenced by Hermes::Hermes2D::Mesh::free().

int Hermes::Hermes2D::Mesh::MarkersConversion::min_marker_unused
protected

Info about the maximum marker used so far, used in determining of the internal marker for a user-supplied std::string identification for the purpose of disambiguity.

Definition at line 279 of file mesh.h.


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