summaryrefslogtreecommitdiff
path: root/decoder/sparse_vector.h
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-16 01:56:43 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-16 01:56:43 +0000
commit8d7ee7ad908b1fd797881a140057f3504b845b87 (patch)
treea32cda70fef443e802d371d790a88b52af722a7a /decoder/sparse_vector.h
parentd7d59c4bb81262f1dfece384ec68fa2c25096843 (diff)
oracle is_null
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@277 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/sparse_vector.h')
-rw-r--r--decoder/sparse_vector.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/decoder/sparse_vector.h b/decoder/sparse_vector.h
index c6c57150..455a162b 100644
--- a/decoder/sparse_vector.h
+++ b/decoder/sparse_vector.h
@@ -255,6 +255,8 @@ public:
return values_.size() < other.values_.size();
}
+ int size() const { return values_.size(); }
+
int num_active() const { return values_.size(); }
bool empty() const { return values_.empty(); }