~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/key_map.h

  • Committer: Monty Taylor
  • Date: 2009-05-08 19:07:39 UTC
  • mto: This revision was merged to the branch mainline in revision 1009.
  • Revision ID: mordred@inaugust.com-20090508190739-rwas5y9xjg1a92p6
Reverted a crap-ton of padraig's work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef DRIZZLED_KEY_MAP_H
21
21
#define DRIZZLED_KEY_MAP_H
22
22
 
23
 
#include <drizzled/global.h>
24
 
#include <drizzled/definitions.h>
25
 
 
26
23
#include <bitset>
27
24
 
28
25
/* Used for finding keys */
29
26
#if MAX_INDEXES <= 64
30
 
typedef std::bitset<72> key_map;
 
27
typedef std::bitset<64>  key_map;
31
28
#else
32
29
typedef std::bitset<((MAX_INDEXES+7)/8*8)> key_map;
33
30
#endif
34
31
 
35
 
/* useful constants */
36
 
extern const key_map key_map_empty;
37
 
extern key_map key_map_full;          /* Should be threaded as const */
38
 
 
39
 
bool is_keymap_prefix(const key_map& map, const uint32_t n);
 
32
bool is_subset(const key_map& map, const key_map& map2);
 
33
bool is_prefix(const key_map& map, const uint32_t n);
40
34
bool is_overlapping(const key_map& map, const key_map& map2);
41
 
void set_prefix(key_map& map, const uint32_t n);
42
 
void key_map_subtract(key_map& map1, key_map& map2);
43
35
 
44
36
#endif