SALOME - SMESH
SMESH_Array1< TheItemType >::Iterator Class Reference

Implementation of the Iterator interface. More...

#include <SMESH_Array1.hxx>

Inheritance diagram for SMESH_Array1< TheItemType >::Iterator:
Inheritance graph
Collaboration diagram for SMESH_Array1< TheItemType >::Iterator:
Collaboration graph

Public Member Functions

 Iterator (void)
 Empty constructor - for later Init. More...
 
 Iterator (const SMESH_Array1 &theArray)
 Constructor with initialisation. More...
 
void Init (const SMESH_Array1 &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...
 
SMESH_Array1myArray
 Pointer to the array being iterated. More...
 

Detailed Description

template<class TheItemType>
class SMESH_Array1< TheItemType >::Iterator

Implementation of the Iterator interface.

Definition at line 60 of file SMESH_Array1.hxx.

Constructor & Destructor Documentation

◆ Iterator() [1/2]

template<class TheItemType >
SMESH_Array1< TheItemType >::Iterator::Iterator ( void  )

Empty constructor - for later Init.

Definition at line 64 of file SMESH_Array1.hxx.

Referenced by SMESH_Array1< TheItemType >::CreateIterator().

Here is the caller graph for this function:

◆ Iterator() [2/2]

template<class TheItemType >
SMESH_Array1< TheItemType >::Iterator::Iterator ( const SMESH_Array1 theArray)

Constructor with initialisation.

Definition at line 68 of file SMESH_Array1.hxx.

Member Function Documentation

◆ Init()

template<class TheItemType >
void SMESH_Array1< TheItemType >::Iterator::Init ( const SMESH_Array1 theArray)

Initialisation.

Definition at line 72 of file SMESH_Array1.hxx.

References SMESH_Array1< TheItemType >::Lower(), SMESH_Array1< TheItemType >::Iterator::myArray, and SMESH_Array1< TheItemType >::Iterator::myCurrent.

Here is the call graph for this function:

◆ More()

template<class TheItemType >
virtual Standard_Boolean SMESH_Array1< TheItemType >::Iterator::More ( void  ) const
virtual

Check end.

Definition at line 78 of file SMESH_Array1.hxx.

References SMESH_Array1< TheItemType >::Upper().

Here is the call graph for this function:

◆ Next()

template<class TheItemType >
virtual void SMESH_Array1< TheItemType >::Iterator::Next ( void  )
virtual

Make step.

Definition at line 81 of file SMESH_Array1.hxx.

References SMESH_Array1< TheItemType >::Iterator::myCurrent.

◆ Value()

template<class TheItemType >
virtual const TheItemType& SMESH_Array1< TheItemType >::Iterator::Value ( void  ) const
virtual

Constant value access.

Definition at line 84 of file SMESH_Array1.hxx.

References SMESH_Array1< TheItemType >::Iterator::myArray, SMESH_Array1< TheItemType >::Iterator::myCurrent, and SMESH_Array1< TheItemType >::Value().

Referenced by SMESH_Array1< TheItemType >::operator()().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ChangeValue()

template<class TheItemType >
virtual TheItemType& SMESH_Array1< TheItemType >::Iterator::ChangeValue ( void  ) const
virtual

Variable value access.

Definition at line 87 of file SMESH_Array1.hxx.

References SMESH_Array1< TheItemType >::ChangeValue(), SMESH_Array1< TheItemType >::Iterator::myArray, and SMESH_Array1< TheItemType >::Iterator::myCurrent.

Referenced by SMESH_Array1< TheItemType >::operator()().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator new()

template<class TheItemType >
void* SMESH_Array1< TheItemType >::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.

Field Documentation

◆ myCurrent

template<class TheItemType >
Standard_Integer SMESH_Array1< TheItemType >::Iterator::myCurrent
private

◆ myArray

template<class TheItemType >
SMESH_Array1* SMESH_Array1< TheItemType >::Iterator::myArray
private