Version: 8.3.0
SMDS_MeshElement_MyIterator Class Reference

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

Inheritance diagram for SMDS_MeshElement_MyIterator:

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. More...
 
const SMDS_MeshElementnext ()
 Return the current object and step to the next one. More...
 
virtual void remove ()
 Delete the current element and step to the next one. More...
 

Private Attributes

const SMDS_MeshElementmyElement
 
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

Constructor & Destructor Documentation

SMDS_MeshElement_MyIterator::SMDS_MeshElement_MyIterator ( const SMDS_MeshElement element)

Member Function Documentation

bool SMDS_MeshElement_MyIterator::more ( )
virtual

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

Implements SMDS_Iterator< const SMDS_MeshElement * >.

const SMDS_MeshElement* SMDS_MeshElement_MyIterator::next ( )
virtual

Return the current object and step to the next one.

Implements SMDS_Iterator< const SMDS_MeshElement * >.

virtual void SMDS_Iterator< const SMDS_MeshElement * >::remove ( )
virtualinherited

Delete the current element and step to the next one.

Field Documentation

const SMDS_MeshElement* SMDS_MeshElement_MyIterator::myElement
private
bool SMDS_MeshElement_MyIterator::myMore
private