add begin and end methods to run_list
This commit is contained in:
parent
3b471d6ebf
commit
404ca5ba30
@ -35,6 +35,10 @@ namespace base {
|
|||||||
void add(run_list<T> const &rl);
|
void add(run_list<T> const &rl);
|
||||||
void sub(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:
|
private:
|
||||||
bool in_run_(T const &key) const;
|
bool in_run_(T const &key) const;
|
||||||
|
|
||||||
|
13
run_list.tcc
13
run_list.tcc
@ -145,4 +145,17 @@ run_list<T>::sub(run_list<T> const &rl)
|
|||||||
// FIXME: finish
|
// 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();
|
||||||
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------
|
//----------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user