0.12.3: Increased Tango rendering performance, modified all handleEvent() with new interface (now returning bool)

This commit is contained in:
matlabbe
2017-03-12 21:21:09 -04:00
parent c12980ee91
commit d21ae76fff
56 changed files with 1869 additions and 662 deletions
+11
View File
@@ -33,6 +33,7 @@
#include <algorithm>
#include <vector>
#include <rtabmap/utilite/ULogger.h>
namespace rtflann
{
@@ -86,6 +87,15 @@ public:
return count;
}
/**
*
* Returns: heap size
*/
int capacity()
{
return length;
}
/**
* Tests if the heap is empty
*
@@ -129,6 +139,7 @@ public:
return;
}
UASSERT(heap.size() < heap.capacity());
heap.push_back(value);
static CompareT compareT;
std::push_heap(heap.begin(), heap.end(), compareT);