Version: 8.3.0
SMDS_IteratorOfElements Class Reference

#include <SMDS_IteratorOfElements.hxx>

Inheritance diagram for SMDS_IteratorOfElements:

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. 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 t1Iterator
 
SMDS_ElemIteratorPtr t2Iterator
 
SMDSAbs_ElementType myType
 
const SMDS_MeshElementmyElement
 
const SMDS_MeshElementmyProxyElement
 
bool myReverseIteration
 
std::set< const
SMDS_MeshElement * > 
alreadyReturnedElements
 
std::set< const
SMDS_MeshElement * >::iterator 
itAlreadyReturned
 

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

References alreadyReturnedElements, SMDS_MeshElement::GetType(), itAlreadyReturned, myElement, myReverseIteration, SMDSAbs_Edge, SMDSAbs_Face, SMDSAbs_Node, SMDSAbs_Volume, subMore(), and subNext().

Member Function Documentation

bool SMDS_IteratorOfElements::more ( )
virtual
const SMDS_MeshElement * SMDS_IteratorOfElements::next ( )
virtual

Return the current object and step to the next one.

Implements SMDS_Iterator< const SMDS_MeshElement * >.

References more(), and myProxyElement.

virtual void SMDS_Iterator< const SMDS_MeshElement * >::remove ( )
virtualinherited

Delete the current element and step to the next one.

bool SMDS_IteratorOfElements::subMore ( )
private

References myType, t1Iterator, and t2Iterator.

Referenced by SMDS_IteratorOfElements().

const SMDS_MeshElement * SMDS_IteratorOfElements::subNext ( )
private

References myType, t1Iterator, and t2Iterator.

Referenced by SMDS_IteratorOfElements().

Field Documentation

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

Referenced by more(), and SMDS_IteratorOfElements().

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

Referenced by more(), and SMDS_IteratorOfElements().

const SMDS_MeshElement* SMDS_IteratorOfElements::myElement
private

Referenced by more(), and SMDS_IteratorOfElements().

const SMDS_MeshElement* SMDS_IteratorOfElements::myProxyElement
private

Referenced by more(), and next().

bool SMDS_IteratorOfElements::myReverseIteration
private

Referenced by more(), and SMDS_IteratorOfElements().

SMDSAbs_ElementType SMDS_IteratorOfElements::myType
private

Referenced by subMore(), and subNext().

SMDS_ElemIteratorPtr SMDS_IteratorOfElements::t1Iterator
private

Referenced by subMore(), and subNext().

SMDS_ElemIteratorPtr SMDS_IteratorOfElements::t2Iterator
private

Referenced by subMore(), and subNext().