libMesh::BoundaryInfo::Fill Class Reference

Public Member Functions

 Fill (std::map< boundary_id_type, dof_id_type > &im)
 
 ~Fill ()
 
void operator() (const boundary_id_type &pos)
 

Private Attributes

std::map< boundary_id_type,
dof_id_type > & 
id_map
 
dof_id_type cnt
 

Detailed Description

Functor class for printing a single node's info To be used with "for_each". Functor class for printing a single side's info. To be used with "for_each". Functor class for initializing a map. The entries being added to the map increase by exactly one each time. The desctructor also inserts the invalid_id entry.

Definition at line 593 of file boundary_info.h.

Constructor & Destructor Documentation

libMesh::BoundaryInfo::Fill::Fill ( std::map< boundary_id_type, dof_id_type > &  im)
inline

Definition at line 596 of file boundary_info.h.

596 : id_map(im), cnt(0) {}
libMesh::BoundaryInfo::Fill::~Fill ( )
inline

Definition at line 598 of file boundary_info.h.

References cnt, id_map, and libMesh::BoundaryInfo::invalid_id.

599  {
600  id_map[invalid_id] = cnt;
601  }

Member Function Documentation

void libMesh::BoundaryInfo::Fill::operator() ( const boundary_id_type pos)
inline

Definition at line 604 of file boundary_info.h.

References cnt, and id_map.

605  {
606  id_map[pos] = cnt++;
607  }

Member Data Documentation

dof_id_type libMesh::BoundaryInfo::Fill::cnt
private

Definition at line 611 of file boundary_info.h.

Referenced by operator()(), and ~Fill().

std::map<boundary_id_type, dof_id_type>& libMesh::BoundaryInfo::Fill::id_map
private

Definition at line 610 of file boundary_info.h.

Referenced by operator()(), and ~Fill().


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

Site Created By: libMesh Developers
Last modified: February 07 2014 16:57:08 UTC

Hosted By:
SourceForge.net Logo