summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/session_region.h
blob: fae950baa68afff5434b6512eed37a14e4e1b5d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef __ardour_session_region_h__
#define __ardour_session_region_h__

#include <ardour/session.h>
#include <ardour/audioregion.h>

namespace ARDOUR {

template<class T> void Session::foreach_region (T *obj, void (T::*func)(Region *))
{
	Glib::Mutex::Lock lm (region_lock);
	for (RegionList::iterator i = regions.begin(); i != regions.end(); i++) {
		(obj->*func) (i->second);
	}
}

}

#endif /* __ardour_session_region_h__ */