Since TCollection package is going to be obsolete we change only classes that are currently needed to have copy constructor.
: TCollection_BasicMap (NbBuckets, Standard_True),
myExtent (0) {}
+ /// Copy constructor
+ inline TColStd_PackedMapOfInteger (const TColStd_PackedMapOfInteger& theOther)
+ : TCollection_BasicMap (1, Standard_True),
+ myExtent (0)
+ { Assign(theOther); }
+
inline TColStd_PackedMapOfInteger&
operator = (const TColStd_PackedMapOfInteger& Other)
{ return Assign(Other); }
private:
- // ----------- PRIVATE (PROHIBITED) methods
- /// Copy constructor - prohibited.
- TColStd_PackedMapOfInteger (const TColStd_PackedMapOfInteger& theOther);
-
-
// ---------- PRIVATE FIELDS ----------
size_t myExtent;
-- assignment operator (operator=).
---C++: inline
- Create(Other : Sequence) returns Sequence from TCollection
+ Create(Other : Sequence) returns Sequence from TCollection;
---Purpose: Creation by copy of existing Sequence.
- -- Warning: This constructor prints a warning message.
- -- We recommand to use the operator =.
- is private;
Clear(me : in out);
---Purpose: Removes all element(s) of the sequence <me>
{
}
+//=======================================================================
+//function : Copy constructor
+//purpose :
+//=======================================================================
+
+inline TCollection_Sequence::TCollection_Sequence(const TCollection_Sequence& theOther)
+{
+ Assign(theOther);
+}
+
//=======================================================================
//function : Append
//purpose : Appends a Sequence to myself