From: eap Date: Mon, 15 Oct 2012 14:25:42 +0000 (+0000) Subject: 0021543: EDF 1978 SMESH: Viscous layer for 2D meshes X-Git-Tag: V6_6_0a1~29 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b4d9638c8cc0688602d1952676a65f3efe2e84cb;p=modules%2Fsmesh.git 0021543: EDF 1978 SMESH: Viscous layer for 2D meshes - inline SMESHDS_Mesh *getParent() {return myParent; }; + SMESHDS_Mesh *GetParent() { return myParent; } --- diff --git a/src/SMESHDS/SMESHDS_Mesh.cxx b/src/SMESHDS/SMESHDS_Mesh.cxx index a42b9acc0..75e83be01 100644 --- a/src/SMESHDS/SMESHDS_Mesh.cxx +++ b/src/SMESHDS/SMESHDS_Mesh.cxx @@ -823,7 +823,7 @@ static void removeFromContainers (map& theSubMeshes, // Element should belong to only one sub-mesh if ( !theSubMeshes.empty() ) { - SMESHDS_Mesh* mesh = theSubMeshes.begin()->second->getParent(); + SMESHDS_Mesh* mesh = theSubMeshes.begin()->second->GetParent(); list::iterator elIt = theElems.begin(); if ( isNode ) { for ( ; elIt != theElems.end(); ++elIt ) diff --git a/src/SMESHDS/SMESHDS_SubMesh.hxx b/src/SMESHDS/SMESHDS_SubMesh.hxx index 049c73e33..a9feca8b3 100644 --- a/src/SMESHDS/SMESHDS_SubMesh.hxx +++ b/src/SMESHDS/SMESHDS_SubMesh.hxx @@ -73,7 +73,8 @@ class SMESHDS_EXPORT SMESHDS_SubMesh int getSize(); void compactList(); - inline SMESHDS_Mesh *getParent() {return myParent; }; + SMESHDS_Mesh *GetParent() { return myParent; } + int GetID() const { return myIndex; } private: SMESHDS_Mesh * myParent;