1 #ifndef RLCSA_BUILDER_H
2 #define RLCSA_BUILDER_H
14 RLCSABuilder(usint _block_size, usint _sample_rate, usint _buffer_size, usint _threads = 1);
17 void insertSequence(char* sequence, usint length, bool delete_sequence);
19 // Use this if you have already built an index for the file.
20 void insertFromFile(const std::string& base_name);
22 // User must free the index. Builder no longer contains it.
25 // User must free the BWT. length becomes the length of BWT.
26 char* getBWT(usint& length);
30 // These times are not reset with the rest of the builder.
31 double getBuildTime();
32 double getSearchTime();
34 double getMergeTime();
56 void addRLCSA(RLCSA* increment, uchar* sequence, usint length, bool delete_sequence);
59 // These are not allowed.
61 RLCSABuilder(const RLCSABuilder&);
62 RLCSABuilder& operator = (const RLCSABuilder&);
69 #endif // RLCSA_BUILDER_H