LinuxQuestions.org
Visit Jeremy's Blog.
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, 07: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, 04: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, 08: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:41 AM
Oracle interMedia indexes linux_pioneer Solaris / OpenSolaris 4 06-27-2005 06:00 AM
Displaying Bitmap hylke Programming 14 09-02-2004 02:59 PM
creating a bitmap qanopus Programming 1 12-04-2002 06:57 PM
can not see file indexes from web myke_w Linux - Networking 1 11-19-2002 11:48 PM

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

All times are GMT -5. The time now is 07:33 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration