From a03076823b495e09dc4ab848a4f9446b86a913d4 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Mon, 19 Mar 2012 09:06:40 -0700 Subject: [PATCH] Some missing helper functions. --- src/SerializedObject.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/SerializedObject.h b/src/SerializedObject.h index 776821ac82..f7670940db 100644 --- a/src/SerializedObject.h +++ b/src/SerializedObject.h @@ -48,6 +48,10 @@ public: void giveObject(SerializedType* t) { data.push_back(t); } const boost::ptr_vector& peekData() const { return data; } boost::ptr_vector& peekData() { return data; } + + int getCount() const { return data.size(); } + const SerializedType& peekAt(int offset) const { return data[offset]; } + SerializedType& getAt(int offset) { return data[offset]; } };