SALOME - SMESH
SMESH_Array2::Iterator Class Reference

#include <SMESH_Array2.hxx>

Inheritance diagram for SMESH_Array2::Iterator:
Inheritance graph
Collaboration diagram for SMESH_Array2::Iterator:
Collaboration graph

Public Member Functions

 Iterator (void)
 Empty constructor - for later Init.
 Iterator (const SMESH_Array2 &theArray)
 Constructor with initialisation.
void Init (const SMESH_Array2 &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.
Standard_Integer mySize
 Total amount of items.
SMESH_Array2myArray
 Pointer to the array being iterated.

Constructor & Destructor Documentation

SMESH_Array2::Iterator::Iterator ( void  )

Empty constructor - for later Init.

Definition at line 45 of file SMESH_Array2.hxx.

SMESH_Array2::Iterator::Iterator ( const SMESH_Array2 theArray)

Constructor with initialisation.

Definition at line 50 of file SMESH_Array2.hxx.


Member Function Documentation

void SMESH_Array2::Iterator::Init ( const SMESH_Array2 theArray)

Initialisation.

Definition at line 55 of file SMESH_Array2.hxx.

References myCurrent, mySize, SMESH_Array2::Length(), and myArray.

Here is the call graph for this function:

virtual Standard_Boolean SMESH_Array2::Iterator::More ( void  ) const [virtual]

Check end.

Definition at line 62 of file SMESH_Array2.hxx.

References myCurrent, and mySize.

virtual void SMESH_Array2::Iterator::Next ( void  ) [virtual]

Make step.

Definition at line 65 of file SMESH_Array2.hxx.

References myCurrent.

virtual const TheItemType& SMESH_Array2::Iterator::Value ( void  ) const [virtual]

Constant value access.

Definition at line 68 of file SMESH_Array2.hxx.

References myArray, SMESH_Array2::myStart, and myCurrent.

virtual TheItemType& SMESH_Array2::Iterator::ChangeValue ( void  ) const [virtual]

Variable value access.

Definition at line 71 of file SMESH_Array2.hxx.

References myArray, SMESH_Array2::myStart, and myCurrent.

void* SMESH_Array2::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.


Field Documentation

Standard_Integer SMESH_Array2::Iterator::myCurrent [private]

Index of the current item.

Definition at line 78 of file SMESH_Array2.hxx.

Referenced by Init(), More(), Next(), Value(), and ChangeValue().

Standard_Integer SMESH_Array2::Iterator::mySize [private]

Total amount of items.

Definition at line 79 of file SMESH_Array2.hxx.

Referenced by Init(), and More().

Pointer to the array being iterated.

Definition at line 80 of file SMESH_Array2.hxx.

Referenced by Init(), Value(), and ChangeValue().