projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
52611e2
)
(Source List) Add forall_regions function, used by Region and Source lists.
author
Ben Loftis
<ben@harrisonconsoles.com>
Fri, 31 May 2019 18:35:40 +0000
(13:35 -0500)
committer
Ben Loftis
<ben@harrisonconsoles.com>
Thu, 1 Aug 2019 17:11:31 +0000
(12:11 -0500)
libs/ardour/ardour/region_factory.h
patch
|
blob
|
history
diff --git
a/libs/ardour/ardour/region_factory.h
b/libs/ardour/ardour/region_factory.h
index e0041a1072916c416d4330ee3050ceb70f4c840f..e7c56e0b507279193846858a352fcc931fdf0758 100644
(file)
--- a/
libs/ardour/ardour/region_factory.h
+++ b/
libs/ardour/ardour/region_factory.h
@@
-95,6
+95,15
@@
public:
static void delete_all_regions ();
static const RegionMap& regions() { return region_map; }
static uint32_t nregions ();
static void delete_all_regions ();
static const RegionMap& regions() { return region_map; }
static uint32_t nregions ();
+
+ static void foreach_region (boost::function<void( boost::shared_ptr<Region> )> f) {
+ Glib::Threads::Mutex::Lock ls (region_map_lock);
+ for (RegionMap::const_iterator i = region_map.begin(); i != region_map.end(); ++i) {
+ f ( (*i).second );
+ }
+ }
+
+
static int region_name (std::string &, std::string, bool new_level = false);
static std::string new_region_name (std::string);
static int region_name (std::string &, std::string, bool new_level = false);
static std::string new_region_name (std::string);