Skip to content

Commit

Permalink
Fix Labeler implementation. Now, 'labeler' method is defined as virtu…
Browse files Browse the repository at this point in the history
…al in 'DecodabelModel'.
  • Loading branch information
igorbonadio committed Aug 18, 2015
1 parent 8c4349e commit 18628f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions include/model/DecodableModel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

// ToPS templates
#include "model/Labeling.tcc"
#include "model/Labeler.tcc"

namespace tops {
namespace model {
Expand All @@ -53,6 +54,8 @@ class DecodableModel : public virtual ProbabilisticModel {
const Labeling<Sequence> &sequence, bool cached = false) = 0;

virtual GeneratorPtr<Labeling> labelingGenerator() = 0;
virtual LabelerPtr<Standard> labeler(const Standard<Sequence> &s,
bool cached = false) = 0;
};

} // namespace model
Expand Down
2 changes: 1 addition & 1 deletion include/model/DecodableModelCrtp.tcc
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class DecodableModelCrtp
GeneratorPtr<Labeling> labelingGenerator() override;

LabelerPtr<Standard> labeler(const Standard<Sequence> &s,
bool cached = false);
bool cached = false) override;

// Purely virtual methods
virtual void initializeCache(CEPtr<Labeling> evaluator,
Expand Down

0 comments on commit 18628f4

Please sign in to comment.