GemaCoreLib
The GeMA Core library
Loading...
Searching...
No Matches
GmStrideCellTaskDataSet< M, activeOnly > Class Template Reference

A GmCellTaskDataSet implementation with strided access, optionally filtered for active cells only. Expects M to be a GmCellMesh or a GmCellGroupSet. More...

Inheritance diagram for GmStrideCellTaskDataSet< M, activeOnly >:
Collaboration diagram for GmStrideCellTaskDataSet< M, activeOnly >:

Public Member Functions

 GmStrideCellTaskDataSet (M *mgs, int offset, int stride)
 
virtual GmCellnextCell ()
 Returns the next cell in the set. Returns NULL when there are no more cells to treat.
 
virtual void reset ()
 Resets the data set iterator so that the next call to nextCell will return the first cell in the set.
 
- Public Member Functions inherited from GmCellTaskDataSet
virtual ~GmCellTaskDataSet ()
 Virtual destructor.
 

Private Attributes

M * _mgs
 The mesh / cell group set.
 
int _offset
 The initial offset for this set.
 
int _size
 The size of the data set.
 
int _next
 The index of the node that will be returned by the next call to nextNode()
 
int _stride
 The stride used as increment.
 

Detailed Description

template<class M, bool activeOnly>
class GmStrideCellTaskDataSet< M, activeOnly >

A GmCellTaskDataSet implementation with strided access, optionally filtered for active cells only. Expects M to be a GmCellMesh or a GmCellGroupSet.

Member Function Documentation

◆ nextCell()

template<class M , bool activeOnly>
virtual GmCell * GmStrideCellTaskDataSet< M, activeOnly >::nextCell ( )
inlinevirtual

Returns the next cell in the set. Returns NULL when there are no more cells to treat.

Implements GmCellTaskDataSet.

◆ reset()

template<class M , bool activeOnly>
virtual void GmStrideCellTaskDataSet< M, activeOnly >::reset ( )
inlinevirtual

Resets the data set iterator so that the next call to nextCell will return the first cell in the set.

Implements GmCellTaskDataSet.


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