Inviwo  0.9.10.1
Inviwo documentation
inviwo::discretedata::ElementIterator Class Reference

#include <elementiterator.h>

Public Member Functions

 ElementIterator (const Connectivity *parent, GridPrimitive dimension, ind index=0)
 
ElementIteratoroperator * ()
 
ElementIteratoroperator++ ()
 
ElementIterator operator++ (int)
 
ElementIteratoroperator-- ()
 
ElementIterator operator-- (int)
 
ElementIterator operator+ (ind offset)
 
ElementIteratoroperator+= (ind offset)
 
ElementIterator operator- (ind offset)
 
ElementIteratoroperator-= (ind offset)
 
bool operator== (ElementIterator &other)
 
bool operator!= (ElementIterator &other)
 
GridPrimitive getType () const
 GridPrimitive type the iterator walks through.
 
ind getIndex () const
 
 operator ind () const
 
ConnectionRange connection (GridPrimitive toType) const
 Iterate over connected GridPrimitives (neighbors etc)
 
const ConnectivitygetGrid () const
 

Protected Attributes

ind index_
 Index to the current element.
 
const Connectivityparent_
 Pointer to Connectivity iterated through - Does not delete.
 
const GridPrimitive dimension_
 GridPrimitive type iterated over (0D vertices etc)
 

Friends

ElementIterator operator+ (ind, ElementIterator &)
 
ElementIterator operator- (ind, ElementIterator &)
 

Detailed Description

Iterates over one GridPrimitive type in a Connectivity.


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