~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/key_map.h

  • Committer: Monty Taylor
  • Date: 2009-04-14 19:16:51 UTC
  • mto: (997.2.5 mordred)
  • mto: This revision was merged to the branch mainline in revision 994.
  • Revision ID: mordred@inaugust.com-20090414191651-ltbww6hpqks8k7qk
Clarified instructions in README.

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/definitions.h>
24
 
 
25
23
#include <bitset>
26
24
 
27
 
namespace drizzled
28
 
{
29
 
 
30
25
/* Used for finding keys */
31
26
#if MAX_INDEXES <= 64
32
 
typedef std::bitset<72> key_map;
 
27
typedef std::bitset<64>  key_map;
33
28
#else
34
29
typedef std::bitset<((MAX_INDEXES+7)/8*8)> key_map;
35
30
#endif
36
31
 
37
 
/* useful constants */
38
 
extern const key_map key_map_empty;
39
 
extern key_map key_map_full;          /* Should be threaded as const */
40
 
 
41
 
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);
42
34
bool is_overlapping(const key_map& map, const key_map& map2);
43
 
void set_prefix(key_map& map, const uint32_t n);
44
 
void key_map_subtract(key_map& map1, key_map& map2);
45
 
 
46
 
} /* namespace drizzled */
47
 
 
48
 
#endif /* DRIZZLED_KEY_MAP_H */
 
35
 
 
36
#endif