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

#include <SMESH_Array2.hxx>

Inheritance diagram for SMESH_Array2< TheItemType >::Iterator:
Inheritance graph
Collaboration diagram for SMESH_Array2< TheItemType >::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.

Detailed Description

template<class TheItemType>
class SMESH_Array2< TheItemType >::Iterator

Definition at line 41 of file SMESH_Array2.hxx.


Constructor & Destructor Documentation

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

Empty constructor - for later Init.

Definition at line 45 of file SMESH_Array2.hxx.

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

Constructor with initialisation.

Definition at line 50 of file SMESH_Array2.hxx.


Member Function Documentation

template<class TheItemType >
void SMESH_Array2< TheItemType >::Iterator::Init ( const SMESH_Array2 theArray)
template<class TheItemType >
virtual Standard_Boolean SMESH_Array2< TheItemType >::Iterator::More ( void  ) const [virtual]
template<class TheItemType >
virtual void SMESH_Array2< TheItemType >::Iterator::Next ( void  ) [virtual]

Make step.

Definition at line 65 of file SMESH_Array2.hxx.

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

template<class TheItemType >
virtual const TheItemType& SMESH_Array2< TheItemType >::Iterator::Value ( void  ) const [virtual]
template<class TheItemType >
virtual TheItemType& SMESH_Array2< TheItemType >::Iterator::ChangeValue ( void  ) const [virtual]
template<class TheItemType >
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.


Field Documentation

template<class TheItemType >
Standard_Integer SMESH_Array2< TheItemType >::Iterator::mySize [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().

template<class TheItemType >
SMESH_Array2* SMESH_Array2< TheItemType >::Iterator::myArray [private]
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines