Version: 6.3.1
Public Member Functions | Private Attributes

MyGroupIterator Class Reference

Inheritance diagram for MyGroupIterator:
Inheritance graph
[legend]

Public Member Functions

 MyGroupIterator (const SMDS_MeshGroup &group)
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_MeshGroupmyGroup

Detailed Description

Definition at line 145 of file SMESHDS_Group.cxx.


Constructor & Destructor Documentation

MyGroupIterator.MyGroupIterator ( const SMDS_MeshGroup group)

Definition at line 149 of file SMESHDS_Group.cxx.

References SMDS_MeshGroup.InitIterator(), and myGroup.

: myGroup(group) { myGroup.InitIterator(); }

Member Function Documentation

bool MyGroupIterator.more ( ) [virtual]

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

Implements SMDS_Iterator< const SMDS_MeshElement * >.

Definition at line 150 of file SMESHDS_Group.cxx.

References SMDS_MeshGroup.More(), and myGroup.

{ return myGroup.More(); }
const SMDS_MeshElement* MyGroupIterator.next ( ) [virtual]

Return the current object and step to the next one.

Implements SMDS_Iterator< const SMDS_MeshElement * >.

Definition at line 151 of file SMESHDS_Group.cxx.

References myGroup, and SMDS_MeshGroup.Next().

{ return myGroup.Next(); }
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 147 of file SMESHDS_Group.cxx.

Referenced by more(), MyGroupIterator(), and next().

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