public:
// ---------- PUBLIC METHODS ------------
+ //! Empty Constructor.
+ NCollection_DataMap() : NCollection_BaseMap (1, Standard_True, Handle(NCollection_BaseAllocator)()) {}
+
//! Constructor
- NCollection_DataMap (const Standard_Integer NbBuckets=1,
- const Handle(NCollection_BaseAllocator)& theAllocator = 0L)
- : NCollection_BaseMap (NbBuckets, Standard_True, theAllocator) {}
+ explicit NCollection_DataMap (const Standard_Integer theNbBuckets,
+ const Handle(NCollection_BaseAllocator)& theAllocator = 0L)
+ : NCollection_BaseMap (theNbBuckets, Standard_True, theAllocator) {}
//! Copy constructor
NCollection_DataMap (const NCollection_DataMap& theOther)
public:
// ---------- PUBLIC METHODS ------------
+ //! Empty constructor.
+ NCollection_DoubleMap() : NCollection_BaseMap (1, Standard_False, Handle(NCollection_BaseAllocator)()) {}
+
//! Constructor
- NCollection_DoubleMap (const Standard_Integer NbBuckets=1,
- const Handle(NCollection_BaseAllocator)& theAllocator = 0L)
- : NCollection_BaseMap (NbBuckets, Standard_False, theAllocator) {}
+ explicit NCollection_DoubleMap (const Standard_Integer theNbBuckets,
+ const Handle(NCollection_BaseAllocator)& theAllocator = 0L)
+ : NCollection_BaseMap (theNbBuckets, Standard_False, theAllocator) {}
//! Copy constructor
NCollection_DoubleMap (const NCollection_DoubleMap& theOther)
public:
// ---------- PUBLIC METHODS ------------
+ //! Empty constructor.
+ NCollection_IndexedDataMap() : NCollection_BaseMap (1, Standard_False, Handle(NCollection_BaseAllocator)()) {}
+
//! Constructor
- NCollection_IndexedDataMap (const Standard_Integer NbBuckets=1,
- const Handle(NCollection_BaseAllocator)& theAllocator = 0L)
- : NCollection_BaseMap (NbBuckets, Standard_False, theAllocator) {}
+ explicit NCollection_IndexedDataMap (const Standard_Integer theNbBuckets,
+ const Handle(NCollection_BaseAllocator)& theAllocator = 0L)
+ : NCollection_BaseMap (theNbBuckets, Standard_False, theAllocator) {}
//! Copy constructor
NCollection_IndexedDataMap (const NCollection_IndexedDataMap& theOther)
public:
// ---------- PUBLIC METHODS ------------
+ //! Empty constructor.
+ NCollection_IndexedMap() : NCollection_BaseMap (1, Standard_False, Handle(NCollection_BaseAllocator)()) {}
+
//! Constructor
- NCollection_IndexedMap (const Standard_Integer NbBuckets=1,
- const Handle(NCollection_BaseAllocator)& theAllocator=0L)
- : NCollection_BaseMap (NbBuckets, Standard_False, theAllocator) {}
+ explicit NCollection_IndexedMap (const Standard_Integer theNbBuckets,
+ const Handle(NCollection_BaseAllocator)& theAllocator=0L)
+ : NCollection_BaseMap (theNbBuckets, Standard_False, theAllocator) {}
//! Copy constructor
NCollection_IndexedMap (const NCollection_IndexedMap& theOther)
public:
// ---------- PUBLIC METHODS ------------
+ //! Empty constructor.
+ NCollection_List() : NCollection_BaseList(Handle(NCollection_BaseAllocator)()) {}
+
//! Constructor
- NCollection_List(const Handle(NCollection_BaseAllocator)& theAllocator=0L) :
- NCollection_BaseList(theAllocator) {}
+ explicit NCollection_List(const Handle(NCollection_BaseAllocator)& theAllocator) : NCollection_BaseList(theAllocator) {}
//! Copy constructor
NCollection_List (const NCollection_List& theOther) :
{
public:
- NCollection_LocalArray (const size_t theSize)
+ explicit NCollection_LocalArray (const size_t theSize)
: myPtr (myBuffer)
{
Allocate(theSize);
public:
// ---------- PUBLIC METHODS ------------
+ //! Empty constructor.
+ NCollection_Map() : NCollection_BaseMap (1, Standard_True, Handle(NCollection_BaseAllocator)()) {}
+
//! Constructor
- NCollection_Map (const Standard_Integer NbBuckets = 1,
- const Handle(NCollection_BaseAllocator)& theAllocator = 0L) :
- NCollection_BaseMap (NbBuckets, Standard_True, theAllocator) {}
+ explicit NCollection_Map (const Standard_Integer theNbBuckets,
+ const Handle(NCollection_BaseAllocator)& theAllocator = 0L)
+ : NCollection_BaseMap (theNbBuckets, Standard_True, theAllocator) {}
//! Copy constructor
NCollection_Map (const NCollection_Map& theOther) :
public:
// ---------- PUBLIC METHODS ------------
+ //! Empty constructor.
+ NCollection_Sequence() : NCollection_BaseSequence(Handle(NCollection_BaseAllocator)()) {}
+
//! Constructor
- NCollection_Sequence(const Handle(NCollection_BaseAllocator)& theAllocator=0L) :
- NCollection_BaseSequence(theAllocator) {}
+ explicit NCollection_Sequence (const Handle(NCollection_BaseAllocator)& theAllocator) : NCollection_BaseSequence(theAllocator) {}
//! Copy constructor
NCollection_Sequence (const NCollection_Sequence& theOther) :
public:
//! Constructor; accepts size of blocks
- NCollection_SparseArray (Standard_Size theIncrement)
+ explicit NCollection_SparseArray (Standard_Size theIncrement)
: NCollection_SparseArrayBase(sizeof(TheItemType),theIncrement)
{
}
// ---------- PUBLIC METHODS ----------
+ /**
+ * Empty constructor.
+ */
+ NCollection_UBTree() : myRoot(0L), myLastNode(0L), myAlloc (NCollection_BaseAllocator::CommonBaseAllocator()) {}
+
/**
* Constructor.
*/
- NCollection_UBTree
- (const Handle(NCollection_BaseAllocator)& theAllocator=0L)
- : myRoot(0L), myLastNode(0L)
- {
- if (theAllocator.IsNull())
- myAlloc = NCollection_BaseAllocator::CommonBaseAllocator();
- else
- myAlloc = theAllocator;
- }
+ explicit NCollection_UBTree (const Handle(NCollection_BaseAllocator)& theAllocator)
+ : myRoot(0L), myLastNode(0L), myAlloc (!theAllocator.IsNull() ? theAllocator : NCollection_BaseAllocator::CommonBaseAllocator()) {}
/**
* Update the tree with a new object and its bounding box.