#include <iostream>
#include <cstdlib>
#include <fstream>
-#include <math.h>
+#include <cmath>
#include <bitset>
#ifndef SAMPLE
#include "bittree.h"
-#include "handle.h"
-#include "pos.h"
#if SAMPLE!=0
#include "ssatree.h"
//n=length of str, del=delete text afterwards
- ulong addText(uchar const * str, ulong n);
+ void addText(uchar const * str, ulong n);
ulong addTextFromFile(char* filename, ulong n);
uchar* retrieveText(ulong text);
bool deleteText(ulong key);
ulong getSize() {return root->bittree->getPositions();}
- ulong getCollectionSize(){ return pos->getSize();}
+ ulong getCollectionSize(){ return numberOfTexts; }// pos->getSize();}
uchar* getBWT();
std::ostream& getBWTStream(std::ostream& stream);
uchar operator[](ulong i);
void printDynFMIContent(std::ostream& stream);
- ulong* getKeys() {return handle->getKeys(); }
+ /*ulong* getKeys() {return handle->getKeys(); }
ulong getPos(ulong i)
- { return handle->getPos(i); }
+ { return handle->getPos(i); }*/
private:
+ ulong numberOfTexts;
WaveletNode *root;
WaveletNode **leaves; // needed for construction and select
#endif
ulong iterate;
- Handle *handle;
- Pos *pos;
+ //Handle *handle;
+ //Pos *pos;
#if SAMPLE!=0
SampledSATree *sampledSATree;
#endif