From b4d9638c8cc0688602d1952676a65f3efe2e84cb Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 15 Oct 2012 14:25:42 +0000 Subject: [PATCH] 0021543: EDF 1978 SMESH: Viscous layer for 2D meshes - inline SMESHDS_Mesh *getParent() {return myParent; }; + SMESHDS_Mesh *GetParent() { return myParent; } --- src/SMESHDS/SMESHDS_Mesh.cxx | 2 +- src/SMESHDS/SMESHDS_SubMesh.hxx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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; -- 2.39.2