diff options
author | jfouet <jfouet@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-05-14 15:11:55 +0400 |
---|---|---|
committer | jfouet <jfouet@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-05-14 15:11:55 +0400 |
commit | 40c93618fc4d69bd1beed446c0e6e21f2b576816 (patch) | |
tree | 943d9664566c771ffdfaa2d29907bf78d8bd9756 /mert/FeatureArray.h | |
parent | b68b41f7e20b6ad5a563cbec722b878e6766f75d (diff) |
add const get accesor to FeatureDataand Array
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1639 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'mert/FeatureArray.h')
-rw-r--r-- | mert/FeatureArray.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mert/FeatureArray.h b/mert/FeatureArray.h index cb48eca24..c5a56f1b3 100644 --- a/mert/FeatureArray.h +++ b/mert/FeatureArray.h @@ -45,6 +45,7 @@ public: inline void setIndex(size_t value){ idx=value; } inline FeatureStats get(int i){ return array_.at(i); } + inline FeatureStats get(int i)const{ return array_.at(i); } void add(FeatureStats e){ array_.push_back(e); } inline size_t size(){ return array_.size(); } @@ -62,4 +63,4 @@ public: }; -#endif
\ No newline at end of file +#endif |