Commit 63c1041e authored by Mikaël Salson's avatar Mikaël Salson

IKmerStore: new finish_building() method

Must be called after having inserted all the sequences.
parent 0f9a0b5d
......@@ -28,6 +28,11 @@ public:
*/
virtual void build_failure_functions() = 0;
/**
* @inherited from IKMerStore
*/
void finish_building();
/**
* @return the information stored for this state
*/
......
......@@ -5,6 +5,11 @@
//////////////////// IMPLEMENTATIONS ////////////////////
template <class Info>
void AbstractACAutomaton<Info>::finish_building() {
build_failure_functions();
}
template <class Info>
bool AbstractACAutomaton<Info>::isInitialState(void *state) {
return state == initialState;
......
......@@ -291,6 +291,9 @@ void IKmerStore<T>::insert(const seqtype &sequence,
}
}
template<class T>
void IKmerStore<T>::finish_building() {}
template<class T>
float IKmerStore<T>::getIndexLoad(const T kmer) const {
return kmer.isUnknown() ? 1 - getIndexLoad() : getIndexLoad();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment