diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2011-11-12 06:26:13 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2011-11-12 06:26:13 +0400 |
commit | fb3b0f9f62259a6e23b8a2e94484957e38dce335 (patch) | |
tree | 20adf195427ded1e05e26b831c8615c491eff948 /mert/ScoreArray.h | |
parent | 54b3b846c7591c8e4b8443740e5f611297959ed7 (diff) |
Add const to Data and Feature class members.
Diffstat (limited to 'mert/ScoreArray.h')
-rw-r--r-- | mert/ScoreArray.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mert/ScoreArray.h b/mert/ScoreArray.h index 05fb71c94..ee95ab87a 100644 --- a/mert/ScoreArray.h +++ b/mert/ScoreArray.h @@ -44,7 +44,7 @@ public: array_.clear(); } - inline std::string getIndex() { + inline std::string getIndex() const { return idx; } inline void setIndex(const std::string& value) { @@ -74,7 +74,7 @@ public: score_type = sctype; } - inline size_t size() { + inline size_t size() const { return array_.size(); } inline size_t NumberOfScores() const { @@ -97,7 +97,7 @@ public: void load(ifstream& inFile); void load(const std::string &file); - bool check_consistency(); + bool check_consistency() const; }; #endif // SCORE_ARRAY_H |