~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/key_map.h

Renamed namespace slot to namespace service.

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