Back to index

salome-smesh  6.5.0
Public Member Functions | Private Attributes
SMDS_Mesh0DElement_MyNodeIterator Class Reference
Inheritance diagram for SMDS_Mesh0DElement_MyNodeIterator:
Inheritance graph
[legend]
Collaboration diagram for SMDS_Mesh0DElement_MyNodeIterator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SMDS_Mesh0DElement_MyNodeIterator (const SMDS_MeshNode *node)
bool more ()
 Return true if and only if there are other object in this iterator.
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

const SMDS_MeshNode * myNode
int myIndex

Detailed Description

Definition at line 91 of file SMDS_Mesh0DElement.cxx.


Constructor & Destructor Documentation

Definition at line 96 of file SMDS_Mesh0DElement.cxx.

                                                               :
    myNode(node),myIndex(0) {}

Member Function Documentation

bool SMDS_Mesh0DElement_MyNodeIterator::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 99 of file SMDS_Mesh0DElement.cxx.

  {
    return myIndex < 1;
  }
const SMDS_MeshElement* SMDS_Mesh0DElement_MyNodeIterator::next ( ) [inline, virtual]

Return the current object and step to the next one.

Implements SMDS_Iterator< const SMDS_MeshElement * >.

Definition at line 104 of file SMDS_Mesh0DElement.cxx.

  {
    myIndex++;
    if (myIndex == 1)
      return myNode;
    return NULL;
  }
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

Definition at line 94 of file SMDS_Mesh0DElement.cxx.

const SMDS_MeshNode* SMDS_Mesh0DElement_MyNodeIterator::myNode [private]

Definition at line 93 of file SMDS_Mesh0DElement.cxx.


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