GemaCoreLib
The GeMA Core library
Loading...
Searching...
No Matches
GmForeachCellHelperClass< T, C > Class Template Reference

Helper class for the GmForeachActiveXxxx() family of macros. More...

#include <gmCellMesh.h>

Inheritance diagram for GmForeachCellHelperClass< T, C >:
Collaboration diagram for GmForeachCellHelperClass< T, C >:

Public Member Functions

 GmForeachCellHelperClass (const T *container, bool activeOnly)
 Constructor. Positions the iterator on the first active cell.
 
void inc ()
 Increments the iterator.
 
C * cell () const
 Returns the current cell.
 

Additional Inherited Members

- Public Attributes inherited from GmForeachCellHelperClassBase< T >
const T * _container
 The container.
 
bool _activeOnly
 Should we traverse only active cells?
 
int _index
 The current index.
 
int _n
 The number of cells in the container (either a mesh or a cell group set)
 
int _control
 The controls flag used to allow breaking inside the inner loop.
 
- Protected Member Functions inherited from GmForeachCellHelperClassBase< T >
 GmForeachCellHelperClassBase (const T *container, bool activeOnly)
 

Detailed Description

template<class T, class C>
class GmForeachCellHelperClass< T, C >

Helper class for the GmForeachActiveXxxx() family of macros.


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