SALOME - SMESH
SMDS_IteratorOfElements Class Reference

#include <SMDS_IteratorOfElements.hxx>

Inheritance diagram for SMDS_IteratorOfElements:
Inheritance graph
Collaboration diagram for SMDS_IteratorOfElements:
Collaboration graph

Public Member Functions

 SMDS_IteratorOfElements (const SMDS_MeshElement *element, SMDSAbs_ElementType type, const SMDS_ElemIteratorPtr &it)
 Create an iterator which look for elements of type type which are linked to the element element. it is the iterator to get connectivity of element ///////////////////////////////////////////////////////////////////////////.
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 Member Functions

bool subMore ()
const SMDS_MeshElementsubNext ()

Private Attributes

SMDS_ElemIteratorPtr t2Iterator
SMDS_ElemIteratorPtr t1Iterator
SMDSAbs_ElementType myType
const SMDS_MeshElementmyProxyElement
const SMDS_MeshElementmyElement
bool myReverseIteration
std::set< const
SMDS_MeshElement * > 
alreadyReturnedElements
std::set< const
SMDS_MeshElement * >::iterator 
itAlreadyReturned

Detailed Description

Definition at line 31 of file SMDS_IteratorOfElements.hxx.


Constructor & Destructor Documentation

SMDS_IteratorOfElements.SMDS_IteratorOfElements ( const SMDS_MeshElement element,
SMDSAbs_ElementType  type,
const SMDS_ElemIteratorPtr it 
)

Create an iterator which look for elements of type type which are linked to the element element. it is the iterator to get connectivity of element ///////////////////////////////////////////////////////////////////////////.


Member Function Documentation

bool SMDS_IteratorOfElements.more ( ) [virtual]

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

Implements SMDS_Iterator< VALUE >.

const SMDS_MeshElement* SMDS_IteratorOfElements.next ( ) [virtual]

Return the current object and step to the next one.

Implements SMDS_Iterator< VALUE >.

bool SMDS_IteratorOfElements.subMore ( ) [private]
const SMDS_MeshElement* SMDS_IteratorOfElements.subNext ( ) [private]
template<typename VALUE>
virtual void SMDS_Iterator< VALUE >.remove ( ) [virtual, inherited]

Delete the current element and step to the next one.

Definition at line 43 of file SMDS_Iterator.hxx.


Field Documentation

std::set<const SMDS_MeshElement*>::iterator SMDS_IteratorOfElements.itAlreadyReturned [private]

Definition at line 53 of file SMDS_IteratorOfElements.hxx.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines