~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_bitmap.h

  • Committer: Padraig O'Sullivan
  • Date: 2010-10-02 22:27:22 UTC
  • mto: (1823.1.1 trunk-drizzle)
  • mto: This revision was merged to the branch mainline in revision 1824.
  • Revision ID: osullivan.padraig@gmail.com-20101002222722-1fyd3trq2thwp26i
Remove cpp and header file with MyBitmap class and associated functions. No longer needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 2000 MySQL AB
2
 
 
3
 
   This program is free software; you can redistribute it and/or modify
4
 
   it under the terms of the GNU General Public License as published by
5
 
   the Free Software Foundation; version 2 of the License.
6
 
 
7
 
   This program is distributed in the hope that it will be useful,
8
 
   but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
 
   GNU General Public License for more details.
11
 
 
12
 
   You should have received a copy of the GNU General Public License
13
 
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
 
 
16
 
#ifndef DRIZZLED_SQL_BITMAP_H
17
 
#define DRIZZLED_SQL_BITMAP_H
18
 
 
19
 
/*
20
 
  Implementation of a bitmap type.
21
 
  The idea with this is to be able to handle any constant number of bits but
22
 
  also be able to use 32 or 64 bits bitmaps very efficiently
23
 
*/
24
 
 
25
 
#include <drizzled/definitions.h>
26
 
#include <drizzled/util/test.h>
27
 
#include <drizzled/key_map.h>
28
 
#include <pthread.h>
29
 
 
30
 
#include <cstring>
31
 
#include <boost/dynamic_bitset.hpp>
32
 
 
33
 
namespace drizzled
34
 
{
35
 
 
36
 
typedef uint64_t table_map;          /* Used for table bits in join */
37
 
typedef uint32_t nesting_map;  /* Used for flags of nesting constructs */
38
 
 
39
 
 
40
 
static const uint32_t MY_BIT_NONE= UINT32_MAX;
41
 
 
42
 
bool bitmap_is_subset(const boost::dynamic_bitset<>& map1, const boost::dynamic_bitset<>& map2);
43
 
bool bitmap_is_overlapping(const boost::dynamic_bitset<>& map1,
44
 
                           const boost::dynamic_bitset<>& map2);
45
 
void bitmap_union(boost::dynamic_bitset<>& map, const boost::dynamic_bitset<>& map2);
46
 
/* Fast, not thread safe, bitmap functions */
47
 
/* This one is a define because it gets used in an array decl */
48
 
#define bitmap_buffer_size(bits) ((bits+31)/32)*4
49
 
 
50
 
} /* namespace drizzled */
51
 
 
52
 
#endif /* DRIZZLED_SQL_BITMAP_H */