
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. | |
| const SMDS_MeshElement * | next () |
| Return the current object and step to the next one. | |
| MyIterator (const set< const SMESHDS_SubMesh * > &theSubMeshes) | |
| bool | more () |
| Return true if and only if there are other object in this iterator. | |
| VALUE | next () |
| Return the current object and step to the next one. | |
| virtual void | remove () |
| Delete the current element and step to the next one. | |
| virtual void | remove () |
| Delete the current element and step to the next one. | |
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_MeshElement * | myElem |
| bool | myMore |
| set< const SMESHDS_SubMesh * > ::const_iterator | mySubIt |
| set< const SMESHDS_SubMesh * > ::const_iterator | mySubEnd |
| boost::shared_ptr < SMDS_Iterator< VALUE > > | myElemIt |
Definition at line 59 of file SMESHDS_GroupOnGeom.cxx.
| MyIterator< VALUE >.MyIterator | ( | SMDSAbs_ElementType | type, |
| const SMESHDS_SubMesh * | subMesh | ||
| ) |
Definition at line 66 of file SMESHDS_GroupOnGeom.cxx.
: myType(type), myElem(0) { if ( subMesh ) { if ( myType == SMDSAbs_Node ) myNodeIt = subMesh->GetNodes(); else { myElemIt = subMesh->GetElements(); next(); } } }
| MyIterator< VALUE >.MyIterator | ( | const set< const SMESHDS_SubMesh * > & | theSubMeshes | ) |
Definition at line 287 of file SMESHDS_SubMesh.cxx.
| virtual boost::shared_ptr< SMDS_Iterator<VALUE> > MyIterator< VALUE >.getElements | ( | const SMESHDS_SubMesh * | ) | const [protected, pure virtual] |
Implemented in MyElemIterator, and MyNodeIterator.
| bool MyIterator< VALUE >.more | ( | ) | [virtual] |
Return true if and only if there are other object in this iterator.
Implements SMDS_Iterator< VALUE >.
Definition at line 78 of file SMESHDS_GroupOnGeom.cxx.
{
if ( myType == SMDSAbs_Node && myNodeIt )
return myNodeIt->more();
return ( myElem != 0 );
}
| bool MyIterator< VALUE >.more | ( | ) | [virtual] |
Return true if and only if there are other object in this iterator.
Implements SMDS_Iterator< VALUE >.
Definition at line 290 of file SMESHDS_SubMesh.cxx.
| const SMDS_MeshElement* MyIterator< VALUE >.next | ( | ) | [virtual] |
Return the current object and step to the next one.
Implements SMDS_Iterator< VALUE >.
Definition at line 84 of file SMESHDS_GroupOnGeom.cxx.
Referenced by MyIterator< const SMDS_MeshNode * >.MyIterator().
| VALUE MyIterator< VALUE >.next | ( | ) | [virtual] |
Return the current object and step to the next one.
Implements SMDS_Iterator< VALUE >.
Definition at line 300 of file SMESHDS_SubMesh.cxx.
| virtual void SMDS_Iterator< VALUE >.remove | ( | ) | [virtual, inherited] |
Delete the current element and step to the next one.
Definition at line 44 of file SMDS_Iterator.hxx.
{}
| virtual void SMDS_Iterator< const SMDS_MeshElement * >.remove | ( | ) | [virtual, inherited] |
Delete the current element and step to the next one.
Definition at line 44 of file SMDS_Iterator.hxx.
{}
const SMDS_MeshElement* MyIterator< VALUE >.myElem [private] |
Definition at line 64 of file SMESHDS_GroupOnGeom.cxx.
Referenced by MyIterator< const SMDS_MeshNode * >.more(), and MyIterator< const SMDS_MeshNode * >.next().
SMDS_ElemIteratorPtr MyIterator< VALUE >.myElemIt [private] |
Definition at line 62 of file SMESHDS_GroupOnGeom.cxx.
Referenced by MyIterator< const SMDS_MeshNode * >.MyIterator(), and MyIterator< const SMDS_MeshNode * >.next().
boost::shared_ptr< SMDS_Iterator<VALUE> > MyIterator< VALUE >.myElemIt [private] |
Definition at line 314 of file SMESHDS_SubMesh.cxx.
bool MyIterator< VALUE >.myMore [private] |
Definition at line 312 of file SMESHDS_SubMesh.cxx.
SMDS_NodeIteratorPtr MyIterator< VALUE >.myNodeIt [private] |
Definition at line 63 of file SMESHDS_GroupOnGeom.cxx.
Referenced by MyIterator< const SMDS_MeshNode * >.more(), MyIterator< const SMDS_MeshNode * >.MyIterator(), and MyIterator< const SMDS_MeshNode * >.next().
set<const SMESHDS_SubMesh*>::const_iterator MyIterator< VALUE >.mySubEnd [private] |
Definition at line 313 of file SMESHDS_SubMesh.cxx.
set<const SMESHDS_SubMesh*>::const_iterator MyIterator< VALUE >.mySubIt [private] |
Definition at line 313 of file SMESHDS_SubMesh.cxx.
SMDSAbs_ElementType MyIterator< VALUE >.myType [private] |
Definition at line 61 of file SMESHDS_GroupOnGeom.cxx.
Referenced by MyIterator< const SMDS_MeshNode * >.more(), MyIterator< const SMDS_MeshNode * >.MyIterator(), and MyIterator< const SMDS_MeshNode * >.next().