Yes, there is a write function that take a 
ibis::array_t<ibis::bitvector::word_t> argument.  This function writes 
the m_vec out to the argument (along with one or two more words 
depending on how many bits are used in the active word).

John

PS: If the active word is not used, a word with the value 0 is 
appended after m_vec.  If the active word has some bits actually used, 
then both active::val and active::nbits are appended after m_vec.



On 10/19/2010 5:22 PM, Teryl Taylor wrote:
> Hi John,
>
> Thanks for getting back to me.  Yes, I want to get the m_vec data.
>   Just wanted to see if there was a way to get it without modifying
> your code.  How do you write out a serialized version?  Do you just
> use the bitvector write method?
>
> Thanks,
>
> Teryl
>
>
> On Tue, Oct 19, 2010 at 7:13 PM, K. John Wu <[email protected]
> <mailto:[email protected]>> wrote:
>
>     Hi, Teryl,
>
>     Interesting question.  Guess depending what you intended to do
>     there are different ways of get access to the actual data.
>
>     One thing is to write the serialized version of the bitvector to
>     an ibis::array_t<ibis::bitvector::word_t> object.
>
>     Another possibility is to simply modify the definition to give
>     yourself access the private member variable m_vec.
>
>     Of course, I could have complete misunderstood your question..
>
>     John
>
>
>
>     On 10/19/2010 3:25 PM, Teryl Taylor wrote:
>
>         Hi all,
>
>         I'm playing around with the ibis::bitvector class and I want
>         to get
>         access to the underlying buffer for storage.   Is there an
>         easy way to
>         do this?   I can't seem to find a public method which gives
>         access to
>         the underlying array.
>
>         Regards,
>
>         Teryl
>
>
>
>         _______________________________________________
>         FastBit-users mailing list
>         [email protected] <mailto:[email protected]>
>         https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users
>
>
_______________________________________________
FastBit-users mailing list
[email protected]
https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users

Reply via email to