aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/experts/expert_nodes.hpp
diff options
context:
space:
mode:
authorAndrej Rode <andrej.rode@ettus.com>2017-02-09 23:19:55 -0800
committerMartin Braun <martin.braun@ettus.com>2017-02-10 16:44:33 -0800
commit26cc20847cde543e759aa5cee9a27eaa69c5dd9e (patch)
treeeee102333381e2313af59e725d6b7a06b665161f /host/lib/experts/expert_nodes.hpp
parentf3a004faf7d50cbb5564f5e2f67f54ee07e051dd (diff)
downloaduhd-26cc20847cde543e759aa5cee9a27eaa69c5dd9e.tar.gz
uhd-26cc20847cde543e759aa5cee9a27eaa69c5dd9e.tar.bz2
uhd-26cc20847cde543e759aa5cee9a27eaa69c5dd9e.zip
uhd: replace BOOST_FOREACH with C++11 range-based for loop
Note: This is the first commit that uses for-range, and range-based for-loops are now usable for UHD development.
Diffstat (limited to 'host/lib/experts/expert_nodes.hpp')
-rw-r--r--host/lib/experts/expert_nodes.hpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/host/lib/experts/expert_nodes.hpp b/host/lib/experts/expert_nodes.hpp
index 6040cd19e..4a285cc80 100644
--- a/host/lib/experts/expert_nodes.hpp
+++ b/host/lib/experts/expert_nodes.hpp
@@ -23,7 +23,6 @@
#include <uhd/utils/dirty_tracked.hpp>
#include <uhd/types/time_spec.hpp>
#include <boost/function.hpp>
-#include <boost/foreach.hpp>
#include <boost/thread/recursive_mutex.hpp>
#include <boost/thread.hpp>
#include <boost/units/detail/utility.hpp>
@@ -409,7 +408,7 @@ namespace uhd { namespace experts {
// Worker node specific
std::list<std::string> get_inputs() const {
std::list<std::string> retval;
- BOOST_FOREACH(data_accessor_t* acc, _inputs) {
+ for(data_accessor_t* acc: _inputs) {
retval.push_back(acc->node().get_name());
}
return retval;
@@ -417,7 +416,7 @@ namespace uhd { namespace experts {
std::list<std::string> get_outputs() const {
std::list<std::string> retval;
- BOOST_FOREACH(data_accessor_t* acc, _outputs) {
+ for(data_accessor_t* acc: _outputs) {
retval.push_back(acc->node().get_name());
}
return retval;
@@ -442,14 +441,14 @@ namespace uhd { namespace experts {
// Graph resolution specific
virtual bool is_dirty() const {
bool inputs_dirty = false;
- BOOST_FOREACH(data_accessor_t* acc, _inputs) {
+ for(data_accessor_t* acc: _inputs) {
inputs_dirty |= acc->node().is_dirty();
}
return inputs_dirty;
}
virtual void mark_clean() {
- BOOST_FOREACH(data_accessor_t* acc, _inputs) {
+ for(data_accessor_t* acc: _inputs) {
acc->node().mark_clean();
}
}