OOF2: The Manual


ElementFuncNodeIterator — Iterate over function nodes in an Element


C++ Synopsis

#include "engine/elementnodeiterator.h"
class ElementFuncNodeIterator: , public ElementShapeFuncIterator {
  FuncNode* funcnode() const;

Python Synopsis

from oof2.SWIG.engine import elementnodeiterator
class ElementFuncNodeIterator(ElementShapeFuncIterator):
  def funcnode(self)

Source Files

  • SRC/engine/elementnodeiterator.C: C++ source code
  • SRC/engine/elementnodeiterator.h: C++ header
  • SRC/engine/elementnodeiterator.swg: swig source code


An ElementFuncNodeIterator loops over the Nodes of an Element that are used to store Field values and whose shape functions are used for functional interpolation within the Element.

ElementFuncNodeIterators should not be created explicitly. Call Element::funcnode_iterator() instead.


Most of the ElementFuncNodeIterator methods are described in its base classes' documentation, ElementShapeFuncIterator and ElementNodeIterator.

FuncNode *funcnode() const

funcnode returns a pointer to the FuncNode that the iterator is currently referring to. The only difference between ElementFuncNodeIterator::funcnode and the base class function, ElementNodeIterator::node, is in the return type. Both calls return the same object, but funcnode returns a pointer to the derived class, FuncNode while node returns a pointer to the base class, Node.