]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Issue 0020370: Symbols multi defined
authorvsr <vsr@opencascade.com>
Thu, 28 May 2009 13:39:06 +0000 (13:39 +0000)
committervsr <vsr@opencascade.com>
Thu, 28 May 2009 13:39:06 +0000 (13:39 +0000)
src/Controls/SMESH_Controls.cxx
src/Controls/SMESH_ControlsDef.hxx

index d007834226ada28b4db9ce96c1c3cd24b168d0ae..e6946a84aa003b27ed9ebea83326e7f271102131 100644 (file)
@@ -3250,3 +3250,35 @@ void ElementsOnShape::process (const SMDS_MeshElement* theElemPtr)
   if (isSatisfy)
     myIds.Add(theElemPtr->GetID());
 }
+
+TSequenceOfXYZ::TSequenceOfXYZ()
+{}
+
+TSequenceOfXYZ::TSequenceOfXYZ(size_type n) : std::vector<gp_XYZ>(n)
+{}
+
+TSequenceOfXYZ::TSequenceOfXYZ(size_type n, const value_type& t) : std::vector<gp_XYZ>(n,t)
+{}
+
+TSequenceOfXYZ::TSequenceOfXYZ(const TSequenceOfXYZ& theSequenceOfXYZ) : std::vector<gp_XYZ>(theSequenceOfXYZ)
+{}
+
+template <class InputIterator>
+TSequenceOfXYZ::TSequenceOfXYZ(InputIterator theBegin, InputIterator theEnd): std::vector<gp_XYZ>(theBegin,theEnd)
+{}
+
+TSequenceOfXYZ& TSequenceOfXYZ::operator=(const TSequenceOfXYZ& theSequenceOfXYZ)
+{
+  std::vector<gp_XYZ>::operator=(theSequenceOfXYZ);
+  return *this;
+}
+
+std::vector<gp_XYZ>::reference TSequenceOfXYZ::operator()(size_type n)
+{
+  return std::vector<gp_XYZ>::operator[](n-1);
+}
+
+std::vector<gp_XYZ>::const_reference TSequenceOfXYZ::operator()(size_type n) const
+{
+  return std::vector<gp_XYZ>::operator[](n-1);
+}
index dba5f81986411780338a270d73d097077fc02cd6..38a507c84bf1f21e6c6b6c1417ce9e852c031bf7 100644 (file)
@@ -71,39 +71,22 @@ namespace SMESH{
     class SMESHCONTROLS_EXPORT TSequenceOfXYZ: public std::vector<gp_XYZ>
     {
     public:
-      typedef std::vector<gp_XYZ> TSuperClass;
-      TSequenceOfXYZ()
-      {}
+      TSequenceOfXYZ();
 
-      TSequenceOfXYZ(size_type n):
-       TSuperClass(n)
-      {}
+      TSequenceOfXYZ(size_type n);
 
-      TSequenceOfXYZ(size_type n, const value_type& t):
-       TSuperClass(n,t)
-      {}
+      TSequenceOfXYZ(size_type n, const value_type& t);
 
-      TSequenceOfXYZ(const TSequenceOfXYZ& theSequenceOfXYZ):
-       TSuperClass(theSequenceOfXYZ)
-      {}
+      TSequenceOfXYZ(const TSequenceOfXYZ& theSequenceOfXYZ);
 
       template <class InputIterator>
-      TSequenceOfXYZ(InputIterator theBegin, InputIterator theEnd):
-       TSuperClass(theBegin,theEnd)
-      {}
-
-      TSequenceOfXYZ& operator=(const TSequenceOfXYZ& theSequenceOfXYZ){
-       TSuperClass::operator=(theSequenceOfXYZ);
-       return *this;
-      }
-
-      reference operator()(size_type n){
-       return TSuperClass::operator[](n-1);
-      }
-
-      const_reference operator()(size_type n) const{
-       return TSuperClass::operator[](n-1);
-      }
+      TSequenceOfXYZ(InputIterator theBegin, InputIterator theEnd);
+
+      TSequenceOfXYZ& operator=(const TSequenceOfXYZ& theSequenceOfXYZ);
+
+      reference operator()(size_type n);
+
+      const_reference operator()(size_type n) const;
 
     private:
       reference operator[](size_type n);