~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_bitmap.h

  • Committer: Monty Taylor
  • Date: 2009-05-10 00:06:55 UTC
  • mto: This revision was merged to the branch mainline in revision 1009.
  • Revision ID: mordred@inaugust.com-20090510000655-skah44c5mcydjmo5
Removed vestigal bitset<MAX_FIELDS> references.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#include <drizzled/key_map.h>
33
33
 
34
34
 
35
 
#include <bitset>
36
 
 
37
 
 
38
35
typedef uint64_t table_map;          /* Used for table bits in join */
39
36
typedef uint32_t nesting_map;  /* Used for flags of nesting constructs */
40
37
 
45
42
*/
46
43
typedef uint64_t nested_join_map; /* Needed by sql_select.h and table.h */
47
44
 
48
 
/*
49
 
 * Finds the first bit that is not set and sets
50
 
 * it.
51
 
 *
52
 
 * @param the bitmap to work with
53
 
 */
54
 
uint32_t setNextBit(std::bitset<MAX_FIELDS> &bitmap);
55
 
 
56
 
/*
57
 
 * Returns the position of the first bit in the
58
 
 * given bitmap which is not set. If every bit is set
59
 
 * in the bitmap, return BIT_NONE.
60
 
 *
61
 
 * @param the bitmap to work with
62
 
 */
63
 
uint32_t getFirstBitPos(const std::bitset<MAX_FIELDS> &bitmap);
64
 
 
65
 
/*
66
 
 * Returns true if there is any overlapping bits between
67
 
 * the 2 given bitmaps.
68
 
 *
69
 
 * @param the first bitmap to work with
70
 
 * @param the second bitmap to work with
71
 
 */
72
 
bool isBitmapOverlapping(const std::bitset<MAX_FIELDS> &map1, const std::bitset<MAX_FIELDS> &map2);
73
 
 
74
 
 
75
45
#endif /* _SQL_BITMAP_H_ */