Back to index

salome-smesh  6.5.0
Public Member Functions | Private Attributes
_MySubIterator Class Reference

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

Inheritance diagram for _MySubIterator:
Inheritance graph
[legend]
Collaboration diagram for _MySubIterator:
Collaboration graph
[legend]

List of all members.

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_MeshElement * next ()
 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_MeshElement * next ()
 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_MeshElement * next ()
 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 
) [inline]

Definition at line 206 of file SMDS_PolyhedralVolumeOfNodes.cxx.

                                                                      :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 
) [inline]

Definition at line 323 of file SMDS_QuadraticVolumeOfNodes.cxx.

                                                                      :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 
) [inline]

Definition at line 196 of file SMDS_VolumeOfNodes.cxx.

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

Member Function Documentation

virtual bool _MySubIterator::more ( ) [inline, 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 ( ) [inline, 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 ( ) [inline, 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 ( ) [inline, 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 const SMDS_MeshElement* _MySubIterator::next ( ) [inline, 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 ( ) [inline, 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 void SMDS_Iterator< const SMDS_MeshElement * >::remove ( ) [inline, virtual, inherited]

Delete the current element and step to the next one.

Definition at line 44 of file SMDS_Iterator.hxx.

{}

Member Data Documentation

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

Definition at line 203 of file SMDS_PolyhedralVolumeOfNodes.cxx.

int _MySubIterator::myIndex [private]

Definition at line 204 of file SMDS_PolyhedralVolumeOfNodes.cxx.


The documentation for this class was generated from the following files: