From 68d8f06a04e840123a45bc9991ba88c234307392 Mon Sep 17 00:00:00 2001 From: aml Date: Wed, 24 Feb 2016 13:44:57 +0300 Subject: [PATCH] Old signature of method "reset" is restored to avoid problems with backward compatibility. --- src/NCollection/NCollection_CellFilter.hxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/NCollection/NCollection_CellFilter.hxx b/src/NCollection/NCollection_CellFilter.hxx index 9c6dfac4d1..b2c1a4e414 100644 --- a/src/NCollection/NCollection_CellFilter.hxx +++ b/src/NCollection/NCollection_CellFilter.hxx @@ -164,6 +164,15 @@ public: myCellSize = theCellSize; resetAllocator ( theAlloc ); } + + //! Clear the data structures and set new cell sizes and allocator + void Reset (Standard_Real theCellSize[], + const Handle(NCollection_IncAllocator)& theAlloc=0) + { + for (int i=0; i < mySize; i++) + myCellSize[i] = theCellSize[i]; + resetAllocator ( theAlloc ); + } //! Adds a target object for further search at a point (into only one cell) void Add (const Target& theTarget, const Point &thePnt) -- 2.39.5