SALOME - SMESH
|
#include <SMESH_Array2.hxx>
Public Member Functions | |
Iterator (void) | |
Empty constructor - for later Init. More... | |
Iterator (const SMESH_Array2 &theArray) | |
Constructor with initialisation. More... | |
void | Init (const SMESH_Array2 &theArray) |
Initialisation. More... | |
virtual Standard_Boolean | More (void) const |
Check end. More... | |
virtual void | Next (void) |
Make step. More... | |
virtual const TheItemType & | Value (void) const |
Constant value access. More... | |
virtual TheItemType & | ChangeValue (void) const |
Variable value access. More... | |
void * | operator new (size_t theSize, const Handle(NCollection_BaseAllocator)&theAllocator) |
Operator new for allocating iterators. More... | |
Private Attributes | |
Standard_Integer | myCurrent |
Index of the current item. More... | |
Standard_Integer | mySize |
Total amount of items. More... | |
SMESH_Array2 * | myArray |
Pointer to the array being iterated. More... | |
Definition at line 41 of file SMESH_Array2.hxx.
SMESH_Array2< TheItemType >::Iterator::Iterator | ( | void | ) |
Empty constructor - for later Init.
Definition at line 45 of file SMESH_Array2.hxx.
Referenced by SMESH_Array2< TheItemType >::CreateIterator().
SMESH_Array2< TheItemType >::Iterator::Iterator | ( | const SMESH_Array2 & | theArray | ) |
Constructor with initialisation.
Definition at line 50 of file SMESH_Array2.hxx.
void SMESH_Array2< TheItemType >::Iterator::Init | ( | const SMESH_Array2 & | theArray | ) |
Initialisation.
Definition at line 55 of file SMESH_Array2.hxx.
References SMESH_Array2< TheItemType >::Length(), SMESH_Array2< TheItemType >::Iterator::myArray, SMESH_Array2< TheItemType >::Iterator::myCurrent, and SMESH_Array2< TheItemType >::Iterator::mySize.
|
virtual |
Check end.
Definition at line 62 of file SMESH_Array2.hxx.
References SMESH_Array2< TheItemType >::Iterator::myCurrent, and SMESH_Array2< TheItemType >::Iterator::mySize.
|
virtual |
Make step.
Definition at line 65 of file SMESH_Array2.hxx.
References SMESH_Array2< TheItemType >::Iterator::myCurrent.
|
virtual |
Constant value access.
Definition at line 68 of file SMESH_Array2.hxx.
References SMESH_Array2< TheItemType >::Iterator::myArray, SMESH_Array2< TheItemType >::Iterator::myCurrent, and SMESH_Array2< TheItemType >::myStart.
Referenced by SMESH_Array2< TheItemType >::operator()().
|
virtual |
Variable value access.
Definition at line 71 of file SMESH_Array2.hxx.
References SMESH_Array2< TheItemType >::Iterator::myArray, SMESH_Array2< TheItemType >::Iterator::myCurrent, and SMESH_Array2< TheItemType >::myStart.
Referenced by SMESH_Array2< TheItemType >::operator()().
void* SMESH_Array2< TheItemType >::Iterator::operator new | ( | size_t | theSize, |
const Handle(NCollection_BaseAllocator)& | theAllocator | ||
) |
Operator new for allocating iterators.
Definition at line 74 of file SMESH_Array2.hxx.
|
private |
Index of the current item.
Definition at line 78 of file SMESH_Array2.hxx.
Referenced by SMESH_Array2< TheItemType >::Iterator::ChangeValue(), SMESH_Array2< TheItemType >::Iterator::Init(), SMESH_Array2< TheItemType >::Iterator::More(), SMESH_Array2< TheItemType >::Iterator::Next(), and SMESH_Array2< TheItemType >::Iterator::Value().
|
private |
Total amount of items.
Definition at line 79 of file SMESH_Array2.hxx.
Referenced by SMESH_Array2< TheItemType >::Iterator::Init(), and SMESH_Array2< TheItemType >::Iterator::More().
|
private |
Pointer to the array being iterated.
Definition at line 80 of file SMESH_Array2.hxx.
Referenced by SMESH_Array2< TheItemType >::Iterator::ChangeValue(), SMESH_Array2< TheItemType >::Iterator::Init(), and SMESH_Array2< TheItemType >::Iterator::Value().