Salome HOME
BUG SWP13062
[modules/smesh.git] / src / SMDS / SMDS_Iterator.hxx
index 144f075d13fbd1f3bc130cc245ed71abab4ad277..5d17b6fa2cb5fca2af784b078f27e67f05b065c0 100644 (file)
 //  License along with this library; if not, write to the Free Software 
 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
 // 
-//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 
 #ifndef _SMDS_Iterator_HeaderFile
 #define _SMDS_Iterator_HeaderFile
 
+#include "SMESH_SMDS.hxx"
+
 ///////////////////////////////////////////////////////////////////////////////
 ///Abstract class for iterators
 ///@author Jerome Robert
 ///////////////////////////////////////////////////////////////////////////////
-template<typename VALUE> class SMDS_Iterator
+template<typename VALUE> class SMDS_EXPORT SMDS_Iterator
 {
   public:
        /// Return true if and only if there are other object in this iterator
@@ -36,7 +38,11 @@ template<typename VALUE> class SMDS_Iterator
        virtual VALUE next()=0;
        
        /// Delete the current element and step to the next one
-       virtual void remove(){};
+       virtual void remove(){}
+       
+       /// Provide virtual destructor just for case if some derived iterator
+        /// must have a destructor
+       virtual ~SMDS_Iterator(){}
 };
 
 #endif