]> OCCT Git - occt-copy.git/commitdiff
Old signature of method "reset" is restored to avoid problems with backward compatibi...
authoraml <aml@opencascade.com>
Wed, 24 Feb 2016 10:44:57 +0000 (13:44 +0300)
committeraml <aml@opencascade.com>
Wed, 24 Feb 2016 10:44:57 +0000 (13:44 +0300)
src/NCollection/NCollection_CellFilter.hxx

index 9c6dfac4d1414b10d5dd907f39f4bc4ca995f00b..b2c1a4e41470c89c897bc962102c735c6e675c6c 100644 (file)
@@ -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)