Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjfouet <jfouet@1f5c12ca-751b-0410-a591-d2e778427230>2008-05-14 15:11:55 +0400
committerjfouet <jfouet@1f5c12ca-751b-0410-a591-d2e778427230>2008-05-14 15:11:55 +0400
commit40c93618fc4d69bd1beed446c0e6e21f2b576816 (patch)
tree943d9664566c771ffdfaa2d29907bf78d8bd9756 /mert/FeatureArray.h
parentb68b41f7e20b6ad5a563cbec722b878e6766f75d (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.h3
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