blob: fd73d97699ace927965f58823d27bd5d6c28ddc6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#include <algorithm>
#include "track_selection.h"
using namespace std;
TrackSelection::TrackSelection (list<TimeAxisViewPtr> const &t)
: list<TimeAxisViewPtr> (t)
{
}
list<TimeAxisViewPtr>
TrackSelection::add (list<TimeAxisViewPtr> const & t)
{
list<TimeAxisViewPtr> added;
for (TrackSelection::const_iterator i = t.begin(); i != t.end(); ++i) {
if (!contains (*i)) {
added.push_back (*i);
push_back (*i);
}
}
return added;
}
bool
TrackSelection::contains (TimeAxisViewConstPtr t) const
{
return find (begin(), end(), t) != end();
}
|