changa  3.5
 All Classes Files Functions Variables Typedefs Enumerations Friends Macros Groups Pages
TreeNode.h
Go to the documentation of this file.
1 
7 #ifndef TREENODE_H
8 #define TREENODE_H
9 
10 #include <sstream>
11 
12 #include "SFC.h"
13 
14 namespace TreeStuff {
15 
16 using namespace SFC;
17 
19 inline std::string keyBits(const Key k, const int numBits) {
20  std::ostringstream oss;
21  //oss << "N";
22  bool ready = false;
23  for(int i = 0; i < numBits; i++) {
24  Key k2 = k & (static_cast<Key>(1) << (62 - i));
25  if (ready) oss << (k2 ? 1 : 0);
26  else if (k2 != 0) ready = true;
27  }
28  return oss.str();
29 }
30 
34 
35 const double opening_geometry_factor = 2 / sqrt(3.0);
36 
38 extern int maxBucketSize;
39 
40 
41 } //close namespace TreeStuff
42 
43 #endif //TREENODE_H