Back to index

salome-smesh  6.5.0
Public Member Functions | Private Attributes
SMDS_MeshElement_MyIterator Class Reference

Create an iterator which iterate on elements linked with the current element. More...

Inheritance diagram for SMDS_MeshElement_MyIterator:
Inheritance graph
[legend]
Collaboration diagram for SMDS_MeshElement_MyIterator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SMDS_MeshElement_MyIterator (const SMDS_MeshElement *element)
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_MeshElement * myElement
bool myMore

Detailed Description

Create an iterator which iterate on elements linked with the current element.

Parameters:
typeThe of elements on which you want to iterate
Returns:
A smart pointer to iterator, you are not to take care of freeing memory ////////////////////////////////////////////////////////////////////////////

Definition at line 144 of file SMDS_MeshElement.cxx.


Constructor & Destructor Documentation

SMDS_MeshElement_MyIterator::SMDS_MeshElement_MyIterator ( const SMDS_MeshElement *  element) [inline]

Definition at line 149 of file SMDS_MeshElement.cxx.

                                                               :
    myElement(element),myMore(true) {}

Member Function Documentation

bool SMDS_MeshElement_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 152 of file SMDS_MeshElement.cxx.

  {
    return myMore;
  }
const SMDS_MeshElement* SMDS_MeshElement_MyIterator::next ( ) [inline, virtual]

Return the current object and step to the next one.

Implements SMDS_Iterator< const SMDS_MeshElement * >.

Definition at line 157 of file SMDS_MeshElement.cxx.

  {
    myMore=false;
    return myElement;   
  }     
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

const SMDS_MeshElement* SMDS_MeshElement_MyIterator::myElement [private]

Definition at line 146 of file SMDS_MeshElement.cxx.

Definition at line 147 of file SMDS_MeshElement.cxx.


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