Cleanup depth management

This commit is contained in:
brunoherbelin
2021-02-28 14:10:32 +01:00
parent 70cc66a7f4
commit 8123e61e34
9 changed files with 105 additions and 50 deletions

View File

@@ -241,6 +241,13 @@ SourceList::iterator Session::find(float depth_from, float depth_to)
return std::find_if(sources_.begin(), sources_.end(), Source::hasDepth(depth_from, depth_to));
}
SourceList Session::getCopy() const
{
SourceList list;
list = sources_;
return list;
}
uint Session::numSource() const
{
return sources_.size();