Back to index

salome-smesh  6.5.0
Public Member Functions | Private Attributes
SMDS_VolumeOfFaces_MyIterator Class Reference
Inheritance diagram for SMDS_VolumeOfFaces_MyIterator:
Inheritance graph
[legend]
Collaboration diagram for SMDS_VolumeOfFaces_MyIterator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SMDS_VolumeOfFaces_MyIterator (const SMDS_MeshFace *const *s, int l)
bool more ()
 Return true if and only if there are other object in this iterator.
const SMDS_MeshElement * next ()
 Return the current object and step to the next one.
virtual void remove ()
 Delete the current element and step to the next one.

Private Attributes

const SMDS_MeshFace *const * mySet
int myLength
int index

Detailed Description

Definition at line 57 of file SMDS_VolumeOfFaces.cxx.


Constructor & Destructor Documentation

SMDS_VolumeOfFaces_MyIterator::SMDS_VolumeOfFaces_MyIterator ( const SMDS_MeshFace *const *  s,
int  l 
) [inline]

Definition at line 63 of file SMDS_VolumeOfFaces.cxx.

                                                                     :
    mySet(s),myLength(l),index(0) {}

Member Function Documentation

bool SMDS_VolumeOfFaces_MyIterator::more ( ) [inline, virtual]

Return true if and only if there are other object in this iterator.

Implements SMDS_Iterator< const SMDS_MeshElement * >.

Definition at line 66 of file SMDS_VolumeOfFaces.cxx.

  {
    return index<myLength;
  }
const SMDS_MeshElement* SMDS_VolumeOfFaces_MyIterator::next ( ) [inline, virtual]

Return the current object and step to the next one.

Implements SMDS_Iterator< const SMDS_MeshElement * >.

Definition at line 71 of file SMDS_VolumeOfFaces.cxx.

  {
    index++;
    return mySet[index-1];
  }
virtual void SMDS_Iterator< const SMDS_MeshElement * >::remove ( ) [inline, virtual, inherited]

Delete the current element and step to the next one.

Definition at line 44 of file SMDS_Iterator.hxx.

{}

Member Data Documentation

Definition at line 61 of file SMDS_VolumeOfFaces.cxx.

Definition at line 60 of file SMDS_VolumeOfFaces.cxx.

const SMDS_MeshFace* const* SMDS_VolumeOfFaces_MyIterator::mySet [private]

Definition at line 59 of file SMDS_VolumeOfFaces.cxx.


The documentation for this class was generated from the following file: