Version: 6.3.1
Public Member Functions | Private Attributes

_MySubIterator Class Reference

=================================================================== More...

Inheritance diagram for _MySubIterator:
Inheritance graph
[legend]

Public Member Functions

 _MySubIterator (const SMDS_MeshVolume *vol, SMDSAbs_ElementType type)
virtual bool more ()
 Return true if and only if there are other object in this iterator.
virtual const SMDS_MeshElementnext ()
 Return the current object and step to the next one.
 _MySubIterator (const SMDS_MeshVolume *vol, SMDSAbs_ElementType type)
virtual bool more ()
 Return true if and only if there are other object in this iterator.
virtual const SMDS_MeshElementnext ()
 Return the current object and step to the next one.
 _MySubIterator (const SMDS_VolumeOfNodes *vol, SMDSAbs_ElementType type)
virtual bool more ()
 Return true if and only if there are other object in this iterator.
virtual 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

vector< const SMDS_MeshElement * > myElems
int myIndex

Detailed Description

===================================================================

Iterator on faces or edges of volume.

Iterator on faces or edges of volume ===================================================================

Definition at line 201 of file SMDS_PolyhedralVolumeOfNodes.cxx.


Constructor & Destructor Documentation

_MySubIterator._MySubIterator ( const SMDS_MeshVolume vol,
SMDSAbs_ElementType  type 
)

Definition at line 206 of file SMDS_PolyhedralVolumeOfNodes.cxx.

References SMDS_VolumeTool.GetAllExistingEdges(), SMDS_VolumeTool.GetAllExistingFaces(), and SMDSAbs_Face.

                                                                      :myIndex(0) {
    SMDS_VolumeTool vTool(vol);
    if (type == SMDSAbs_Face)
      vTool.GetAllExistingFaces( myElems );
    else
      vTool.GetAllExistingEdges( myElems );
  }
_MySubIterator._MySubIterator ( const SMDS_MeshVolume vol,
SMDSAbs_ElementType  type 
)

Definition at line 323 of file SMDS_QuadraticVolumeOfNodes.cxx.

References SMDS_VolumeTool.GetAllExistingFaces(), and SMDSAbs_Face.

                                                                      :myIndex(0) {
    SMDS_VolumeTool vTool(vol);
    if (type == SMDSAbs_Face)
      vTool.GetAllExistingFaces( myElems );
    else
      vTool.GetAllExistingFaces( myElems );
  }
_MySubIterator._MySubIterator ( const SMDS_VolumeOfNodes vol,
SMDSAbs_ElementType  type 
)

Definition at line 196 of file SMDS_VolumeOfNodes.cxx.

References SMDS_VolumeTool.GetAllExistingFaces(), and SMDSAbs_Face.

                                                                         :myIndex(0) {
    SMDS_VolumeTool vTool(vol);
    if (type == SMDSAbs_Face)
      vTool.GetAllExistingFaces( myElems );
    else
      vTool.GetAllExistingFaces( myElems );
  }

Member Function Documentation

virtual bool _MySubIterator.more ( ) [virtual]

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

Implements SMDS_Iterator< const SMDS_MeshElement * >.

Definition at line 214 of file SMDS_PolyhedralVolumeOfNodes.cxx.

{ return myIndex < myElems.size(); }
virtual bool _MySubIterator.more ( ) [virtual]

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

Implements SMDS_Iterator< const SMDS_MeshElement * >.

Definition at line 204 of file SMDS_VolumeOfNodes.cxx.

{ return myIndex < myElems.size(); }
virtual bool _MySubIterator.more ( ) [virtual]

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

Implements SMDS_Iterator< const SMDS_MeshElement * >.

Definition at line 331 of file SMDS_QuadraticVolumeOfNodes.cxx.

{ return myIndex < myElems.size(); }
virtual const SMDS_MeshElement* _MySubIterator.next ( ) [virtual]

Return the current object and step to the next one.

Implements SMDS_Iterator< const SMDS_MeshElement * >.

Definition at line 217 of file SMDS_PolyhedralVolumeOfNodes.cxx.

{ return myElems[ myIndex++ ]; }
virtual const SMDS_MeshElement* _MySubIterator.next ( ) [virtual]

Return the current object and step to the next one.

Implements SMDS_Iterator< const SMDS_MeshElement * >.

Definition at line 334 of file SMDS_QuadraticVolumeOfNodes.cxx.

{ return myElems[ myIndex++ ]; }
virtual const SMDS_MeshElement* _MySubIterator.next ( ) [virtual]

Return the current object and step to the next one.

Implements SMDS_Iterator< const SMDS_MeshElement * >.

Definition at line 207 of file SMDS_VolumeOfNodes.cxx.

{ return myElems[ myIndex++ ]; }
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

vector< const SMDS_MeshElement * > _MySubIterator::myElems [private]

Definition at line 203 of file SMDS_PolyhedralVolumeOfNodes.cxx.

Definition at line 204 of file SMDS_PolyhedralVolumeOfNodes.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