From 680a6a28c1b2f55eec2824e4165e164da6a727cb Mon Sep 17 00:00:00 2001 From: Kai Ni Date: Tue, 2 Mar 2010 06:07:46 +0000 Subject: [PATCH] added begin and end iterators --- cpp/NonlinearFactor.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cpp/NonlinearFactor.h b/cpp/NonlinearFactor.h index 7734e4dcf..b98aeb419 100644 --- a/cpp/NonlinearFactor.h +++ b/cpp/NonlinearFactor.h @@ -85,6 +85,12 @@ namespace gtsam { return keys_; } + /* return the begin iterator of keys */ + std::list::const_iterator begin() const { return keys_.begin(); } + + /* return the end iterator of keys */ + std::list::const_iterator end() const { return keys_.end(); } + /** access to the noise model */ SharedGaussian get_noiseModel() const { return noiseModel_;