MySetIterator< ELEM, TSET > Class Template Reference
Public Member Functions | |
virtual bool | more () |
Return true if and only if there are other object in this iterator. More... | |
MySetIterator (const TSET &table) | |
virtual ELEM | next () |
Return the current object and step to the next one. More... | |
Public Member Functions inherited from SMDS_Iterator< ELEM > | |
virtual void | remove () |
Delete the current element and step to the next one. More... | |
virtual | ~SMDS_Iterator () |
Provide virtual destructor just for case if some derived iterator must have a destructor. More... | |
Detailed Description
template<class ELEM, typename TSET>
class MySetIterator< ELEM, TSET >
template class used for iteration on submesh elements. Interface of iterator remains unchanged after redesign of SMDS to avoid modification everywhere in SMESH. instances are stored in shared_ptr for automatic destruction. Container is copied for iteration, because original can be modified by addition of elements, for instance, and then reallocated (vector)
Constructor & Destructor Documentation
◆ MySetIterator()
template<class ELEM , typename TSET >
MySetIterator< ELEM, TSET >::MySetIterator | ( | const TSET & | table | ) |
Member Function Documentation
◆ more()
template<class ELEM , typename TSET >
|
virtual |
Return true if and only if there are other object in this iterator.
Implements SMDS_Iterator< ELEM >.
◆ next()
template<class ELEM , typename TSET >
|
virtual |
Return the current object and step to the next one.
Implements SMDS_Iterator< ELEM >.
The documentation for this class was generated from the following file:
- src/3rdParty/salomesmesh/src/SMESHDS/SMESHDS_SubMesh.cpp