SIS
Symmetric Index Structures
|
00001 #ifndef _HEADER_FILE_BITSEQUENCE_ 00002 #define _HEADER_FILE_BITSEQUENCE_ 00003 typedef struct tBitSequence{ 00004 U64 * seq; 00005 UINT seqStored; 00006 UINT seqAlloced; 00007 SINT growth; 00008 } BitSequence; 00009 00010 BitSequence * BitSequenceInit(); 00011 BitSequence * BitSequenceInit2( UINT seqAlloced, SINT growth ); 00012 void BitSequenceFree( BitSequence * seq ); 00013 void BitSequenceAdd( BitSequence * seq, UINT elementToAdd ); 00014 UINT BitSequenceGet( const BitSequence * seq, UINT position ); 00015 void BitSequenceSet( BitSequence * seq, UINT position, UINT value ); 00016 void BitSequenceWrite( BitSequence * seq, FILE * fp ); 00017 BitSequence * BitSequenceRead( FILE * fp ); 00018 void BitSequenceShrink( BitSequence * seq ); 00019 void BitSequenceAppend( BitSequence * seq, const BitSequence * s ); 00020 void BitSequenceCpy( BitSequence * dest, const BitSequence * src ); 00021 00022 00023 #endif