Version: 8.3.0
MyIterator< VALUE > Class Template Referenceabstract
Inheritance diagram for MyIterator< VALUE >:

Public Member Functions

 MyIterator (SMDSAbs_ElementType type, const SMESHDS_SubMesh *subMesh)
 
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...
 
 MyIterator (const set< const SMESHDS_SubMesh * > &theSubMeshes)
 
bool more ()
 Return true if and only if there are other object in this iterator. More...
 
VALUE next ()
 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...
 
virtual void remove ()
 Delete the current element and step to the next one. More...
 

Protected Member Functions

virtual boost::shared_ptr
< SMDS_Iterator< VALUE > > 
getElements (const SMESHDS_SubMesh *) const =0
 

Private Attributes

SMDSAbs_ElementType myType
 
SMDS_ElemIteratorPtr myElemIt
 
SMDS_NodeIteratorPtr myNodeIt
 
const SMDS_MeshElementmyElem
 
bool myMore
 
set< const SMESHDS_SubMesh * >
::const_iterator 
mySubIt
 
set< const SMESHDS_SubMesh * >
::const_iterator 
mySubEnd
 
boost::shared_ptr
< SMDS_Iterator< VALUE > > 
myElemIt
 

Constructor & Destructor Documentation

template<typename VALUE>
MyIterator< VALUE >::MyIterator ( SMDSAbs_ElementType  type,
const SMESHDS_SubMesh subMesh 
)
template<typename VALUE>
MyIterator< VALUE >::MyIterator ( const set< const SMESHDS_SubMesh * > &  theSubMeshes)

Member Function Documentation

template<typename VALUE>
virtual boost::shared_ptr< SMDS_Iterator<VALUE> > MyIterator< VALUE >::getElements ( const SMESHDS_SubMesh ) const
protectedpure virtual

Implemented in MyNodeIterator, and MyElemIterator.

template<typename VALUE>
bool MyIterator< VALUE >::more ( )
virtual

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

Implements SMDS_Iterator< VALUE >.

template<typename VALUE>
bool MyIterator< VALUE >::more ( )
virtual

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

Implements SMDS_Iterator< VALUE >.

template<typename VALUE>
const SMDS_MeshElement* MyIterator< VALUE >::next ( )
virtual

Return the current object and step to the next one.

Implements SMDS_Iterator< VALUE >.

Referenced by MyIterator< const SMDS_MeshNode * >::MyIterator().

template<typename VALUE>
VALUE MyIterator< VALUE >::next ( )
virtual

Return the current object and step to the next one.

Implements SMDS_Iterator< VALUE >.

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

Delete the current element and step to the next one.

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

Delete the current element and step to the next one.

Field Documentation

template<typename VALUE>
const SMDS_MeshElement* MyIterator< VALUE >::myElem
private
template<typename VALUE>
boost::shared_ptr< SMDS_Iterator<VALUE> > MyIterator< VALUE >::myElemIt
private
template<typename VALUE>
bool MyIterator< VALUE >::myMore
private
template<typename VALUE>
set<const SMESHDS_SubMesh*>::const_iterator MyIterator< VALUE >::mySubEnd
private
template<typename VALUE>
set<const SMESHDS_SubMesh*>::const_iterator MyIterator< VALUE >::mySubIt
private