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. More...
 
bool more ()
 Return true if and only if there are other object in this iterator. More...
 
const SMDS_MeshElementnext ()
 Return the current object and step to the next one. More...
 
virtual void remove ()
 Delete the current element and step to the next one. More...
 

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::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

◆ more()

bool SMDS_IteratorOfElements::more ( )
virtual

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

Implements SMDS_Iterator< VALUE >.

◆ next()

const SMDS_MeshElement* SMDS_IteratorOfElements::next ( )
virtual

Return the current object and step to the next one.

Implements SMDS_Iterator< VALUE >.

◆ subMore()

bool SMDS_IteratorOfElements::subMore ( )
private

◆ subNext()

const SMDS_MeshElement* SMDS_IteratorOfElements::subNext ( )
private

◆ remove()

template<typename VALUE>
virtual void SMDS_Iterator< VALUE >::remove ( )
virtualinherited

Delete the current element and step to the next one.

Definition at line 43 of file SMDS_Iterator.hxx.

Field Documentation

◆ t2Iterator

SMDS_ElemIteratorPtr SMDS_IteratorOfElements::t2Iterator
private

Definition at line 45 of file SMDS_IteratorOfElements.hxx.

◆ t1Iterator

SMDS_ElemIteratorPtr SMDS_IteratorOfElements::t1Iterator
private

Definition at line 46 of file SMDS_IteratorOfElements.hxx.

◆ myType

SMDSAbs_ElementType SMDS_IteratorOfElements::myType
private

Definition at line 47 of file SMDS_IteratorOfElements.hxx.

◆ myProxyElement

const SMDS_MeshElement* SMDS_IteratorOfElements::myProxyElement
private

Definition at line 48 of file SMDS_IteratorOfElements.hxx.

◆ myElement

const SMDS_MeshElement* SMDS_IteratorOfElements::myElement
private

Definition at line 49 of file SMDS_IteratorOfElements.hxx.

◆ myReverseIteration

bool SMDS_IteratorOfElements::myReverseIteration
private

Definition at line 50 of file SMDS_IteratorOfElements.hxx.

◆ alreadyReturnedElements

std::set<const SMDS_MeshElement*> SMDS_IteratorOfElements::alreadyReturnedElements
private

Definition at line 52 of file SMDS_IteratorOfElements.hxx.

◆ itAlreadyReturned

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

Definition at line 53 of file SMDS_IteratorOfElements.hxx.