~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_bitmap.h

  • Committer: Padraig O'Sullivan
  • Date: 2009-04-17 02:13:52 UTC
  • mto: (997.2.4 mordred)
  • mto: This revision was merged to the branch mainline in revision 1003.
  • Revision ID: osullivan.padraig@gmail.com-20090417021352-r3xcs9iz8j9zuwbf
Removed my_bitmap.[cc,h] files from the mysys directory. Also removed them
from the Makefile.am file. Some more minor modifications to a number of
files due to the type of key_map now being std::bitset.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef _SQL_BITMAP_H_
21
21
#define _SQL_BITMAP_H_
22
22
 
23
 
/*
24
 
  Implementation of a bitmap type.
25
 
  The idea with this is to be able to handle any constant number of bits but
26
 
  also be able to use 32 or 64 bits bitmaps very efficiently
27
 
*/
28
 
 
29
 
/// TODO: OMG FIX THIS
30
 
 
31
 
#include <mysys/my_bitmap.h>
32
 
#include <drizzled/definitions.h>
33
23
#include <drizzled/util/test.h>
34
24
#include <drizzled/key_map.h>
35
25
 
36
26
#include <bitset>
37
27
 
 
28
#define BIT_NONE (~(uint32_t) 0)
 
29
 
38
30
typedef uint64_t table_map;          /* Used for table bits in join */
39
31
typedef uint32_t nesting_map;  /* Used for flags of nesting constructs */
40
32
 
45
37
*/
46
38
typedef uint64_t nested_join_map; /* Needed by sql_select.h and table.h */
47
39
 
48
 
/* useful constants */#
 
40
/* useful constants */
49
41
extern const key_map key_map_empty;
50
42
extern key_map key_map_full;          /* Should be threaded as const */
51
43
 
60
52
/*
61
53
 * Returns the position of the first bit in the
62
54
 * given bitmap which is not set. If every bit is set
63
 
 * in the bitmap, return MY_BIT_NONE.
 
55
 * in the bitmap, return BIT_NONE.
64
56
 *
65
57
 * @param the bitmap to work with
66
58
 */