summaryrefslogtreecommitdiff
path: root/extractor/phrase_location.h
diff options
context:
space:
mode:
Diffstat (limited to 'extractor/phrase_location.h')
-rw-r--r--extractor/phrase_location.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/extractor/phrase_location.h b/extractor/phrase_location.h
index e04d8628..a0eb36c8 100644
--- a/extractor/phrase_location.h
+++ b/extractor/phrase_location.h
@@ -11,7 +11,9 @@ struct PhraseLocation {
PhraseLocation(const vector<int>& matchings, int num_subpatterns);
- bool IsEmpty();
+ bool IsEmpty() const;
+
+ int GetSize() const;
friend bool operator==(const PhraseLocation& a, const PhraseLocation& b);