Version: 8.3.0
SMDS_MeshNode_MyInvIterator Class Reference

Iterator on list of elements. More...

Inheritance diagram for SMDS_MeshNode_MyInvIterator:

Public Member Functions

 SMDS_MeshNode_MyInvIterator (SMDS_Mesh *mesh, vtkIdType *cells, int ncells, SMDSAbs_ElementType type)
 
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

SMDS_MeshmyMesh
 
vtkIdType * myCells
 
int myNcells
 
SMDSAbs_ElementType myType
 
int iter
 
vector< vtkIdType > cellList
 

Detailed Description

Iterator on list of elements.

Constructor & Destructor Documentation

SMDS_MeshNode_MyInvIterator::SMDS_MeshNode_MyInvIterator ( SMDS_Mesh mesh,
vtkIdType *  cells,
int  ncells,
SMDSAbs_ElementType  type 
)

Member Function Documentation

bool SMDS_MeshNode_MyInvIterator::more ( )
virtual

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

Implements SMDS_Iterator< const SMDS_MeshElement * >.

References iter, and myNcells.

const SMDS_MeshElement* SMDS_MeshNode_MyInvIterator::next ( )
virtual

Return the current object and step to the next one.

Implements SMDS_Iterator< const SMDS_MeshElement * >.

References SMDS_Mesh::FindElement(), SMDS_Mesh::fromVtkToSmds(), iter, MESSAGE, myCells, and myMesh.

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

Delete the current element and step to the next one.

Field Documentation

vector<vtkIdType> SMDS_MeshNode_MyInvIterator::cellList
private
int SMDS_MeshNode_MyInvIterator::iter
private

Referenced by more(), and next().

vtkIdType* SMDS_MeshNode_MyInvIterator::myCells
private
SMDS_Mesh* SMDS_MeshNode_MyInvIterator::myMesh
private
int SMDS_MeshNode_MyInvIterator::myNcells
private
SMDSAbs_ElementType SMDS_MeshNode_MyInvIterator::myType
private