Version: 6.3.1
Public Member Functions | Private Attributes

SMDS_FaceOfEdges_MyIterator Class Reference

Inheritance diagram for SMDS_FaceOfEdges_MyIterator:
Inheritance graph
[legend]

Public Member Functions

 SMDS_FaceOfEdges_MyIterator (const SMDS_MeshEdge *const *s, int l)
bool more ()
 Return true if and only if there are other object in this iterator.
const SMDS_MeshElementnext ()
 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_MeshEdge *const mySet
int myLength
int index

Detailed Description

Definition at line 73 of file SMDS_FaceOfEdges.cxx.


Constructor & Destructor Documentation

SMDS_FaceOfEdges_MyIterator.SMDS_FaceOfEdges_MyIterator ( const SMDS_MeshEdge *const *  s,
int  l 
)

Definition at line 79 of file SMDS_FaceOfEdges.cxx.

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

Member Function Documentation

bool SMDS_FaceOfEdges_MyIterator.more ( ) [virtual]

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

Implements SMDS_Iterator< const SMDS_MeshElement * >.

Definition at line 82 of file SMDS_FaceOfEdges.cxx.

  {
    return index<myLength;
  }
const SMDS_MeshElement* SMDS_FaceOfEdges_MyIterator.next ( ) [virtual]

Return the current object and step to the next one.

Implements SMDS_Iterator< const SMDS_MeshElement * >.

Definition at line 87 of file SMDS_FaceOfEdges.cxx.

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

Delete the current element and step to the next one.

Definition at line 44 of file SMDS_Iterator.hxx.

{}

Field Documentation

Definition at line 77 of file SMDS_FaceOfEdges.cxx.

Definition at line 76 of file SMDS_FaceOfEdges.cxx.

Definition at line 75 of file SMDS_FaceOfEdges.cxx.

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS