projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
VCA API-change: return created VCAs (handy for Lua scripts)
[ardour.git]
/
libs
/
ardour
/
ardour
/
session_route.h
diff --git
a/libs/ardour/ardour/session_route.h
b/libs/ardour/ardour/session_route.h
index 0c70bf407d41be3c6f922a5fe7b5e46fb5e01515..b7eadac7d203e1a30f0c97d04d3e4ed9cfc530b3 100644
(file)
--- a/
libs/ardour/ardour/session_route.h
+++ b/
libs/ardour/ardour/session_route.h
@@
-1,5
+1,5
@@
/*
/*
- Copyright (C) 2000 Paul Davis
+ Copyright (C) 2000 Paul Davis
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-22,49
+22,52
@@
#include <iostream>
#include <iostream>
-#include <glibmm/thread.h>
+#include <glibmm/thread
s
.h>
-#include
<ardour/session.h>
-#include
<ardour/route.h>
+#include
"ardour/session.h"
+#include
"ardour/route.h"
namespace ARDOUR {
namespace ARDOUR {
-template<class T> void
-Session::foreach_route (T *obj, void (T::*func)(Route&))
+template<class T> void
+Session::foreach_route (T *obj, void (T::*func)(Route&)
, bool sort
)
{
boost::shared_ptr<RouteList> r = routes.reader();
RouteList public_order (*r);
{
boost::shared_ptr<RouteList> r = routes.reader();
RouteList public_order (*r);
- RoutePublicOrderSorter cmp;
- public_order.sort (cmp);
+ if (sort) {
+ public_order.sort (Stripable::Sorter ());
+ }
for (RouteList::iterator i = public_order.begin(); i != public_order.end(); i++) {
(obj->*func) (**i);
}
}
for (RouteList::iterator i = public_order.begin(); i != public_order.end(); i++) {
(obj->*func) (**i);
}
}
-template<class T> void
-Session::foreach_route (T *obj, void (T::*func)(boost::shared_ptr<Route>))
+template<class T> void
+Session::foreach_route (T *obj, void (T::*func)(boost::shared_ptr<Route>)
, bool sort
)
{
boost::shared_ptr<RouteList> r = routes.reader();
RouteList public_order (*r);
{
boost::shared_ptr<RouteList> r = routes.reader();
RouteList public_order (*r);
- RoutePublicOrderSorter cmp;
- public_order.sort (cmp);
+ if (sort) {
+ public_order.sort (Stripable::Sorter ());
+ }
for (RouteList::iterator i = public_order.begin(); i != public_order.end(); i++) {
(obj->*func) (*i);
}
}
for (RouteList::iterator i = public_order.begin(); i != public_order.end(); i++) {
(obj->*func) (*i);
}
}
-template<class T, class A> void
-Session::foreach_route (T *obj, void (T::*func)(Route&, A), A arg1)
+template<class T, class A> void
+Session::foreach_route (T *obj, void (T::*func)(Route&, A), A arg1
, bool sort
)
{
boost::shared_ptr<RouteList> r = routes.reader();
RouteList public_order (*r);
{
boost::shared_ptr<RouteList> r = routes.reader();
RouteList public_order (*r);
- RoutePublicOrderSorter cmp;
- public_order.sort (cmp);
+ if (sort) {
+ public_order.sort (Stripable::Sorter ());
+ }
for (RouteList::iterator i = public_order.begin(); i != public_order.end(); i++) {
(obj->*func) (**i, arg1);
for (RouteList::iterator i = public_order.begin(); i != public_order.end(); i++) {
(obj->*func) (**i, arg1);