]> SALOME platform Git repositories - modules/smesh.git/blobdiff - src/SMESHDS/SMESHDS_SubMesh.hxx
Salome HOME
Dump Python extension
[modules/smesh.git] / src / SMESHDS / SMESHDS_SubMesh.hxx
index 1231c490c03ca963b013da4596ba87b07b3d9f22..bc0ccce2a92ddce1f28bbfe2a991e6dd1d9a69dc 100644 (file)
 #include "SMDS_Mesh.hxx"
 #include <set>
 
+class SMESHDS_SubMesh;
+typedef SMDS_Iterator<const SMESHDS_SubMesh*> SMESHDS_SubMeshIterator;
+typedef boost::shared_ptr< SMESHDS_SubMeshIterator > SMESHDS_SubMeshIteratorPtr;
+
 class SMESHDS_EXPORT SMESHDS_SubMesh
 {
  public:
@@ -48,6 +52,8 @@ class SMESHDS_EXPORT SMESHDS_SubMesh
   void AddSubMesh( const SMESHDS_SubMesh* theSubMesh );
   bool RemoveSubMesh( const SMESHDS_SubMesh* theSubMesh );
   bool ContainsSubMesh( const SMESHDS_SubMesh* theSubMesh ) const;
+  int  NbSubMeshes() const { return mySubMeshes.size(); }
+  SMESHDS_SubMeshIteratorPtr GetSubMeshIterator() const;
 
   // for both types
   int NbElements() const;