~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/my_tree.h

MergedĀ build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include "drizzled/qsort_cmp.h"
23
23
#include "drizzled/memory/root.h"
24
24
 
25
 
#ifdef  __cplusplus
26
 
extern "C" {
27
 
#endif
 
25
namespace drizzled
 
26
{
28
27
 
29
28
/* Worst case tree is half full. This gives use 2^(MAX_TREE_HEIGHT/2) leafs */
30
29
static const int MAX_TREE_HEIGHT= 64;
54
53
  size_t allocated;
55
54
  qsort_cmp2 compare;
56
55
  void *custom_arg;
57
 
  drizzled::memory::Root mem_root;
 
56
  memory::Root mem_root;
58
57
  bool with_delete;
59
58
  tree_element_free free;
60
59
  uint32_t flag;
88
87
ha_rows tree_record_pos(TREE *tree, const void *key,
89
88
                        enum ha_rkey_function search_flag, void *custom_arg);
90
89
 
91
 
 
92
 
#ifdef  __cplusplus
93
 
}
94
 
#endif
 
90
} /* namespace drizzled */
95
91
 
96
92
#endif /* DRIZZLED_MY_TREE_H */