LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-25-2005, 06:38 PM   #1
crapodino
Member
 
Registered: Aug 2005
Distribution: SuSE 10
Posts: 72

Rep: Reputation: 15
bitmap indexes in c++


HI!! i have to develop an documental data base and i have to implement bitmap indexes...
As you may know, the leaf nodes of the b-tree + have a pointer to an array of 0 and 1....
Can it be an standar size 64KB ?? Does c++ provide me a class to do this? If not..how can i do an array o 0 and 1...but not an bit field....because what i need to do is for instance:
vector[3] =1; vector[7]=0; if(vector[6]==0) do();
NOte: i am using suse 10 and kdevelop

Thanks
 
Old 11-26-2005, 03:02 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
No, to the best of my knowledge standard C++ doesn't have any built-in "bit arrays". But it's not difficult to make your own class. For example:

http://www.cuj.com/documents/s=8120/...ze/heintze.htm
http://en.wikipedia.org/wiki/Bit_array
http://www.codeproject.com/cpp/XBitArray.asp
 
Old 11-27-2005, 07:43 PM   #3
crapodino
Member
 
Registered: Aug 2005
Distribution: SuSE 10
Posts: 72

Original Poster
Rep: Reputation: 15
Thanks man!! i think i'll use bit_vector from STL i think is the best choice

thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bitmap fonts, but not Helvetica mschutte Debian 2 09-18-2005 10:41 AM
Oracle interMedia indexes linux_pioneer Solaris / OpenSolaris 4 06-27-2005 05:00 AM
Displaying Bitmap hylke Programming 14 09-02-2004 01:59 PM
creating a bitmap qanopus Programming 1 12-04-2002 05:57 PM
can not see file indexes from web myke_w Linux - Networking 1 11-19-2002 10:48 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration