BoundaryInfo::Fill Class Reference

List of all members.

Public Member Functions

 Fill (std::map< short int, unsigned int > &im)
 ~Fill ()
void operator() (const short int &pos)

Private Attributes

std::map< short int, unsigned
int > & 
id_map
unsigned int 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 328 of file boundary_info.h.


Constructor & Destructor Documentation

BoundaryInfo::Fill::Fill ( std::map< short int, unsigned int > &  im  )  [inline]

Definition at line 331 of file boundary_info.h.

00331 : id_map(im), cnt(0) {}

BoundaryInfo::Fill::~Fill (  )  [inline]

Definition at line 333 of file boundary_info.h.

References cnt, id_map, and BoundaryInfo::invalid_id.

00334     {
00335       id_map[invalid_id] = cnt;
00336     }


Member Function Documentation

void BoundaryInfo::Fill::operator() ( const short int &  pos  )  [inline]

Definition at line 339 of file boundary_info.h.

References cnt, and id_map.

00340     {
00341       id_map[pos] = cnt++;
00342     }


Member Data Documentation

unsigned int BoundaryInfo::Fill::cnt [private]

Definition at line 346 of file boundary_info.h.

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

std::map<short int, unsigned int>& BoundaryInfo::Fill::id_map [private]

Definition at line 345 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: November 25 2009 03:43:55.

Hosted By:
SourceForge.net Logo