GemaCoreLib
The GeMA Core library
Loading...
Searching...
No Matches
GmStrideNodeTaskDataSet Class Reference

A GmNodeTaskDataSet implementation with strided access. More...

Inheritance diagram for GmStrideNodeTaskDataSet:
Collaboration diagram for GmStrideNodeTaskDataSet:

Public Member Functions

 GmStrideNodeTaskDataSet (int size, int offset, int stride)
 Constructor. Gets the indices of the first and last nodes returned by this set.
 
virtual int nextNode ()
 Returns the next node in the set. Returns -1 when there are no more nodes to treat. Depending on the configuration used to create the set (GmAffectedNodes value), ghost nodes will be represented by their "linear" index (set returns both geometry and ghost nodes) or by their "local" zero based index (set returns ghost nodes only).
 
virtual void reset ()
 Resets the data set iterator so that the next call to nextNode will return the first node in the set.
 
- Public Member Functions inherited from GmNodeTaskDataSet
virtual ~GmNodeTaskDataSet ()
 Virtual destructor.
 

Private Attributes

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

A GmNodeTaskDataSet implementation with strided access.

Member Function Documentation

◆ nextNode()

virtual int GmStrideNodeTaskDataSet::nextNode ( )
inlinevirtual

Returns the next node in the set. Returns -1 when there are no more nodes to treat. Depending on the configuration used to create the set (GmAffectedNodes value), ghost nodes will be represented by their "linear" index (set returns both geometry and ghost nodes) or by their "local" zero based index (set returns ghost nodes only).

Implements GmNodeTaskDataSet.

◆ reset()

virtual void GmStrideNodeTaskDataSet::reset ( )
inlinevirtual

Resets the data set iterator so that the next call to nextNode will return the first node in the set.

Implements GmNodeTaskDataSet.


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