From: vsr Date: Thu, 28 May 2009 13:39:06 +0000 (+0000) Subject: Issue 0020370: Symbols multi defined X-Git-Tag: V5_1_2rc1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=23636c1eb3a06bf82125062b597bd3d122304ca0;p=modules%2Fsmesh.git Issue 0020370: Symbols multi defined --- diff --git a/src/Controls/SMESH_Controls.cxx b/src/Controls/SMESH_Controls.cxx index d00783422..e6946a84a 100644 --- a/src/Controls/SMESH_Controls.cxx +++ b/src/Controls/SMESH_Controls.cxx @@ -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(n) +{} + +TSequenceOfXYZ::TSequenceOfXYZ(size_type n, const value_type& t) : std::vector(n,t) +{} + +TSequenceOfXYZ::TSequenceOfXYZ(const TSequenceOfXYZ& theSequenceOfXYZ) : std::vector(theSequenceOfXYZ) +{} + +template +TSequenceOfXYZ::TSequenceOfXYZ(InputIterator theBegin, InputIterator theEnd): std::vector(theBegin,theEnd) +{} + +TSequenceOfXYZ& TSequenceOfXYZ::operator=(const TSequenceOfXYZ& theSequenceOfXYZ) +{ + std::vector::operator=(theSequenceOfXYZ); + return *this; +} + +std::vector::reference TSequenceOfXYZ::operator()(size_type n) +{ + return std::vector::operator[](n-1); +} + +std::vector::const_reference TSequenceOfXYZ::operator()(size_type n) const +{ + return std::vector::operator[](n-1); +} diff --git a/src/Controls/SMESH_ControlsDef.hxx b/src/Controls/SMESH_ControlsDef.hxx index dba5f8198..38a507c84 100644 --- a/src/Controls/SMESH_ControlsDef.hxx +++ b/src/Controls/SMESH_ControlsDef.hxx @@ -71,39 +71,22 @@ namespace SMESH{ class SMESHCONTROLS_EXPORT TSequenceOfXYZ: public std::vector { public: - typedef std::vector 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 - 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);