X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMDS%2FSMDS_MeshGroup.hxx;h=37893fab42bb46d6e4405b38d9e7f6f659f21165;hb=2ac338d5787e31ab89824bf36610920e022c21f7;hp=c5bfcb43216dcdf8dfbd8a5e10a11381224831a6;hpb=c3bf92bd87b770fd81631a3853f7f5bb1ac6a4e8;p=modules%2Fsmesh.git diff --git a/src/SMDS/SMDS_MeshGroup.hxx b/src/SMDS/SMDS_MeshGroup.hxx index c5bfcb432..37893fab4 100644 --- a/src/SMDS/SMDS_MeshGroup.hxx +++ b/src/SMDS/SMDS_MeshGroup.hxx @@ -28,9 +28,20 @@ #include "SMDS_Mesh.hxx" #include -using namespace std; -class SMDS_MeshGroup:public SMDS_MeshObject +//#ifdef WNT +//#include +//#else +//#define SALOME_WNT_EXPORT +//#endif + +#if defined WNT && defined WIN32 && defined SMDS_EXPORTS +#define SMDS_WNT_EXPORT __declspec( dllexport ) +#else +#define SMDS_WNT_EXPORT +#endif + +class SMDS_WNT_EXPORT SMDS_MeshGroup:public SMDS_MeshObject { public: SMDS_MeshGroup(const SMDS_Mesh * theMesh, @@ -54,23 +65,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::const_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