From 404ca5ba30352e2310d17a914b12cbdc2baab7df Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Wed, 16 Nov 2011 12:49:28 +0000 Subject: [PATCH] add begin and end methods to run_list --- run_list.h | 4 ++++ run_list.tcc | 13 +++++++++++++ 2 files changed, 17 insertions(+) diff --git a/run_list.h b/run_list.h index 5074545..3e0055f 100644 --- a/run_list.h +++ b/run_list.h @@ -35,6 +35,10 @@ namespace base { void add(run_list const &rl); void sub(run_list const &rl); + typedef std::set >::const_iterator const_iterator; + const_iterator begin() const; + const_iterator end() const; + private: bool in_run_(T const &key) const; diff --git a/run_list.tcc b/run_list.tcc index 212a7b0..2809824 100644 --- a/run_list.tcc +++ b/run_list.tcc @@ -145,4 +145,17 @@ run_list::sub(run_list const &rl) // FIXME: finish } +template +const_iterator +run_list::begin() const +{ + return runs_.begin(); +} + +const_iterator +run_list::end() const +{ + return runs_.end(); +} + //----------------------------------------------------------------