add begin and end methods to run_list

This commit is contained in:
Joe Thornber 2011-11-16 12:49:28 +00:00
parent 3b471d6ebf
commit 404ca5ba30
2 changed files with 17 additions and 0 deletions

View File

@ -35,6 +35,10 @@ namespace base {
void add(run_list<T> const &rl);
void sub(run_list<T> const &rl);
typedef std::set<run<T> >::const_iterator const_iterator;
const_iterator begin() const;
const_iterator end() const;
private:
bool in_run_(T const &key) const;

View File

@ -145,4 +145,17 @@ run_list<T>::sub(run_list<T> const &rl)
// FIXME: finish
}
template <typename T>
const_iterator
run_list<T>::begin() const
{
return runs_.begin();
}
const_iterator
run_list<T>::end() const
{
return runs_.end();
}
//----------------------------------------------------------------