X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMDS%2FSMDS_MeshGroup.hxx;h=69084c5b95771759860b8890f64baaedfcf96f9d;hp=c5bfcb43216dcdf8dfbd8a5e10a11381224831a6;hb=0febe018bcde111dc7aca1f3e44d4aa2995b59a2;hpb=0de991099a7f8bea2687d44c20021be3066f3615;ds=sidebyside diff --git a/src/SMDS/SMDS_MeshGroup.hxx b/src/SMDS/SMDS_MeshGroup.hxx index c5bfcb432..69084c5b9 100644 --- a/src/SMDS/SMDS_MeshGroup.hxx +++ b/src/SMDS/SMDS_MeshGroup.hxx @@ -28,7 +28,7 @@ #include "SMDS_Mesh.hxx" #include -using namespace std; + class SMDS_MeshGroup:public SMDS_MeshObject { @@ -54,23 +54,23 @@ class SMDS_MeshGroup:public SMDS_MeshObject bool Contains(const SMDS_MeshElement * theElem) const; void InitIterator() const - { const_cast(myIterator) = myElements.begin(); } + { const_cast(myIterator) = myElements.begin(); } bool More() const { return myIterator != myElements.end(); } const SMDS_MeshElement* Next() const - { return *(const_cast(myIterator))++; } + { return *(const_cast(myIterator))++; } private: SMDS_MeshGroup(SMDS_MeshGroup* theParent, const SMDSAbs_ElementType theType = SMDSAbs_All); - typedef set::iterator iterator; + typedef std::set::iterator TIterator; const SMDS_Mesh * myMesh; SMDSAbs_ElementType myType; - set myElements; + std::set myElements; SMDS_MeshGroup * myParent; - list myChildren; - iterator myIterator; + std::list myChildren; + TIterator myIterator; }; #endif