Back to index

salome-med  6.5.0
Public Member Functions | Static Public Member Functions | Protected Attributes
MEDMEM_ENSIGHT::_ValueIterator< T > Class Template Reference

Iterator on values of a component. More...

#include <MEDMEM_EnsightUtils.hxx>

List of all members.

Public Member Functions

 _ValueIterator ()
 _ValueIterator (const T *values, int delta)
const T & next ()

Static Public Member Functions

static const T * zeroPtr ()

Protected Attributes

const T * myPtr
int myDelta

Detailed Description

template<typename T>
class MEDMEM_ENSIGHT::_ValueIterator< T >

Iterator on values of a component.

Definition at line 572 of file MEDMEM_EnsightUtils.hxx.


Constructor & Destructor Documentation

template<typename T>
MEDMEM_ENSIGHT::_ValueIterator< T >::_ValueIterator ( ) [inline]

Definition at line 578 of file MEDMEM_EnsightUtils.hxx.

    : myPtr(zeroPtr()), myDelta( 0 ) {}
template<typename T>
MEDMEM_ENSIGHT::_ValueIterator< T >::_ValueIterator ( const T *  values,
int  delta 
) [inline]

Definition at line 581 of file MEDMEM_EnsightUtils.hxx.

: myPtr(values-delta), myDelta(delta) {}

Member Function Documentation

template<typename T>
const T& MEDMEM_ENSIGHT::_ValueIterator< T >::next ( ) [inline]

Definition at line 583 of file MEDMEM_EnsightUtils.hxx.

{ myPtr += myDelta; return *myPtr; }

Here is the caller graph for this function:

template<typename T>
static const T* MEDMEM_ENSIGHT::_ValueIterator< T >::zeroPtr ( ) [inline, static]

Definition at line 585 of file MEDMEM_EnsightUtils.hxx.

{ static T a0 = 0; return &a0; }

Member Data Documentation

template<typename T>
int MEDMEM_ENSIGHT::_ValueIterator< T >::myDelta [protected]

Definition at line 576 of file MEDMEM_EnsightUtils.hxx.

template<typename T>
const T* MEDMEM_ENSIGHT::_ValueIterator< T >::myPtr [protected]

Definition at line 575 of file MEDMEM_EnsightUtils.hxx.


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