Issue 0020370: Symbols multi defined

This commit is contained in:
vsr 2009-05-28 13:39:06 +00:00
parent bd5c3ea6d2
commit 23636c1eb3
2 changed files with 40 additions and 25 deletions

View File

@ -3250,3 +3250,35 @@ void ElementsOnShape::process (const SMDS_MeshElement* theElemPtr)
if (isSatisfy) if (isSatisfy)
myIds.Add(theElemPtr->GetID()); 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);
}

View File

@ -71,39 +71,22 @@ namespace SMESH{
class SMESHCONTROLS_EXPORT TSequenceOfXYZ: public std::vector<gp_XYZ> class SMESHCONTROLS_EXPORT TSequenceOfXYZ: public std::vector<gp_XYZ>
{ {
public: public:
typedef std::vector<gp_XYZ> TSuperClass; TSequenceOfXYZ();
TSequenceOfXYZ()
{}
TSequenceOfXYZ(size_type n): TSequenceOfXYZ(size_type n);
TSuperClass(n)
{}
TSequenceOfXYZ(size_type n, const value_type& t): TSequenceOfXYZ(size_type n, const value_type& t);
TSuperClass(n,t)
{}
TSequenceOfXYZ(const TSequenceOfXYZ& theSequenceOfXYZ): TSequenceOfXYZ(const TSequenceOfXYZ& theSequenceOfXYZ);
TSuperClass(theSequenceOfXYZ)
{}
template <class InputIterator> template <class InputIterator>
TSequenceOfXYZ(InputIterator theBegin, InputIterator theEnd): TSequenceOfXYZ(InputIterator theBegin, InputIterator theEnd);
TSuperClass(theBegin,theEnd)
{}
TSequenceOfXYZ& operator=(const TSequenceOfXYZ& theSequenceOfXYZ){ TSequenceOfXYZ& operator=(const TSequenceOfXYZ& theSequenceOfXYZ);
TSuperClass::operator=(theSequenceOfXYZ);
return *this;
}
reference operator()(size_type n){ reference operator()(size_type n);
return TSuperClass::operator[](n-1);
}
const_reference operator()(size_type n) const{ const_reference operator()(size_type n) const;
return TSuperClass::operator[](n-1);
}
private: private:
reference operator[](size_type n); reference operator[](size_type n);