0021543: EDF 1978 SMESH: Viscous layer for 2D meshes

-  inline SMESHDS_Mesh *getParent() {return myParent; };
+  SMESHDS_Mesh *GetParent()   { return myParent; }
This commit is contained in:
eap 2012-10-15 14:25:42 +00:00
parent b648205fec
commit b4d9638c8c
2 changed files with 3 additions and 2 deletions

View File

@ -823,7 +823,7 @@ static void removeFromContainers (map<int,SMESHDS_SubMesh*>& theSubMeshes,
// Element should belong to only one sub-mesh // Element should belong to only one sub-mesh
if ( !theSubMeshes.empty() ) if ( !theSubMeshes.empty() )
{ {
SMESHDS_Mesh* mesh = theSubMeshes.begin()->second->getParent(); SMESHDS_Mesh* mesh = theSubMeshes.begin()->second->GetParent();
list<const SMDS_MeshElement *>::iterator elIt = theElems.begin(); list<const SMDS_MeshElement *>::iterator elIt = theElems.begin();
if ( isNode ) { if ( isNode ) {
for ( ; elIt != theElems.end(); ++elIt ) for ( ; elIt != theElems.end(); ++elIt )

View File

@ -73,7 +73,8 @@ class SMESHDS_EXPORT SMESHDS_SubMesh
int getSize(); int getSize();
void compactList(); void compactList();
inline SMESHDS_Mesh *getParent() {return myParent; }; SMESHDS_Mesh *GetParent() { return myParent; }
int GetID() const { return myIndex; }
private: private:
SMESHDS_Mesh * myParent; SMESHDS_Mesh * myParent;