SALOME - SMESH
|
Implementation of the Iterator interface. More...
#include <SMESH_Array1.hxx>
Public Member Functions | |
Iterator (void) | |
Empty constructor - for later Init. | |
Iterator (const SMESH_Array1 &theArray) | |
Constructor with initialisation. | |
void | Init (const SMESH_Array1 &theArray) |
Initialisation. | |
virtual Standard_Boolean | More (void) const |
Check end. | |
virtual void | Next (void) |
Make step. | |
virtual const TheItemType & | Value (void) const |
Constant value access. | |
virtual TheItemType & | ChangeValue (void) const |
Variable value access. | |
void * | operator new (size_t theSize, const Handle(NCollection_BaseAllocator)&theAllocator) |
Operator new for allocating iterators. | |
Private Attributes | |
Standard_Integer | myCurrent |
Index of the current item. | |
SMESH_Array1 * | myArray |
Pointer to the array being iterated. |
Implementation of the Iterator interface.
SMESH_Array1::Iterator::Iterator | ( | void | ) |
Empty constructor - for later Init.
Definition at line 64 of file SMESH_Array1.hxx.
SMESH_Array1::Iterator::Iterator | ( | const SMESH_Array1 & | theArray | ) |
Constructor with initialisation.
Definition at line 68 of file SMESH_Array1.hxx.
void SMESH_Array1::Iterator::Init | ( | const SMESH_Array1 & | theArray | ) |
Initialisation.
Definition at line 72 of file SMESH_Array1.hxx.
References myCurrent, SMESH_Array1::Lower(), and myArray.
virtual Standard_Boolean SMESH_Array1::Iterator::More | ( | void | ) | const [virtual] |
Check end.
Definition at line 78 of file SMESH_Array1.hxx.
References SMESH_Array1::Upper().
virtual void SMESH_Array1::Iterator::Next | ( | void | ) | [virtual] |
virtual const TheItemType& SMESH_Array1::Iterator::Value | ( | void | ) | const [virtual] |
Constant value access.
Definition at line 84 of file SMESH_Array1.hxx.
References myArray, SMESH_Array1::Value(), and myCurrent.
virtual TheItemType& SMESH_Array1::Iterator::ChangeValue | ( | void | ) | const [virtual] |
Variable value access.
Definition at line 87 of file SMESH_Array1.hxx.
References myArray, SMESH_Array1::ChangeValue(), and myCurrent.
void* SMESH_Array1::Iterator::operator new | ( | size_t | theSize, |
const Handle(NCollection_BaseAllocator)& | theAllocator | ||
) |
Operator new for allocating iterators.
Definition at line 90 of file SMESH_Array1.hxx.
Standard_Integer SMESH_Array1::Iterator::myCurrent [private] |
Index of the current item.
Definition at line 94 of file SMESH_Array1.hxx.
Referenced by Init(), Next(), Value(), and ChangeValue().
SMESH_Array1* SMESH_Array1::Iterator::myArray [private] |
Pointer to the array being iterated.
Definition at line 95 of file SMESH_Array1.hxx.
Referenced by Init(), Value(), and ChangeValue().