template class used for iteration on submesh elements. More...

Public Member Functions | |
| MySetIterator (const TSET &table) | |
| virtual bool | more () |
| Return true if and only if there are other object in this iterator. | |
| virtual ELEM | next () |
| Return the current object and step to the next one. | |
| virtual void | remove () |
| Delete the current element and step to the next one. | |
Protected Attributes | |
| TSET::const_iterator | _it |
| TSET::const_iterator | _end |
| TSET | _table |
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)
Definition at line 250 of file SMESHDS_SubMesh.cxx.
| MySetIterator< ELEM, TSET >.MySetIterator | ( | const TSET & | table | ) |
| virtual bool MySetIterator< ELEM, TSET >.more | ( | ) | [virtual] |
Return true if and only if there are other object in this iterator.
Implements SMDS_Iterator< ELEM >.
Definition at line 265 of file SMESHDS_SubMesh.cxx.
| virtual ELEM MySetIterator< ELEM, TSET >.next | ( | ) | [virtual] |
Return the current object and step to the next one.
Implements SMDS_Iterator< ELEM >.
Definition at line 272 of file SMESHDS_SubMesh.cxx.
| virtual void SMDS_Iterator< ELEM >.remove | ( | ) | [virtual, inherited] |
Delete the current element and step to the next one.
Definition at line 44 of file SMDS_Iterator.hxx.
{}
TSET::const_iterator MySetIterator< ELEM, TSET >._end [protected] |
Definition at line 253 of file SMESHDS_SubMesh.cxx.
TSET::const_iterator MySetIterator< ELEM, TSET >._it [protected] |
Definition at line 253 of file SMESHDS_SubMesh.cxx.
TSET MySetIterator< ELEM, TSET >._table [protected] |
Definition at line 254 of file SMESHDS_SubMesh.cxx.