Back to index

salome-med  6.5.0
Public Member Functions | Private Attributes
TFieldCounter Class Reference
Collaboration diagram for TFieldCounter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TFieldCounter (fstream &f, int limit=0)
void init (int limit=0)
void operator++ (int)
void stop ()

Private Attributes

fstream & _file
int _count
int _limit

Detailed Description

Definition at line 2851 of file MEDMEM_GibiMeshDriver.cxx.


Constructor & Destructor Documentation

TFieldCounter::TFieldCounter ( fstream &  f,
int  limit = 0 
) [inline]

Definition at line 2856 of file MEDMEM_GibiMeshDriver.cxx.

: _file(f), _limit(limit) { init(); }

Member Function Documentation

void TFieldCounter::init ( int  limit = 0) [inline]

Definition at line 2857 of file MEDMEM_GibiMeshDriver.cxx.

  { if (limit) _limit = limit; _count = 0; }
void TFieldCounter::operator++ ( int  ) [inline]

Definition at line 2859 of file MEDMEM_GibiMeshDriver.cxx.

  { if ( ++_count == _limit ) { _file << endl; init(); }}

Here is the call graph for this function:

Here is the caller graph for this function:

void TFieldCounter::stop ( ) [inline]

Definition at line 2861 of file MEDMEM_GibiMeshDriver.cxx.

  { if ( _count ) _file << endl; init(); }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

int TFieldCounter::_count [private]

Definition at line 2854 of file MEDMEM_GibiMeshDriver.cxx.

fstream& TFieldCounter::_file [private]

Definition at line 2853 of file MEDMEM_GibiMeshDriver.cxx.

int TFieldCounter::_limit [private]

Definition at line 2854 of file MEDMEM_GibiMeshDriver.cxx.


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