aboutsummaryrefslogtreecommitdiff
path: root/src/util/box_traverser.h
diff options
context:
space:
mode:
authorAdrian Kummerlaender2016-12-11 13:39:33 +0100
committerAdrian Kummerlaender2016-12-11 13:39:33 +0100
commit6622e436442e37190c43aa40770f0f01bc2427e9 (patch)
tree1d0c3d72ba0f35a51ceea9dfb7e387255755db48 /src/util/box_traverser.h
parent245d40cb5618aa7c12d9109bc45e817be8d0e7b8 (diff)
downloadtermlife-6622e436442e37190c43aa40770f0f01bc2427e9.tar
termlife-6622e436442e37190c43aa40770f0f01bc2427e9.tar.gz
termlife-6622e436442e37190c43aa40770f0f01bc2427e9.tar.bz2
termlife-6622e436442e37190c43aa40770f0f01bc2427e9.tar.lz
termlife-6622e436442e37190c43aa40770f0f01bc2427e9.tar.xz
termlife-6622e436442e37190c43aa40770f0f01bc2427e9.tar.zst
termlife-6622e436442e37190c43aa40770f0f01bc2427e9.zip
Move non-template classes into distinct compilation units
Diffstat (limited to 'src/util/box_traverser.h')
-rw-r--r--src/util/box_traverser.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/util/box_traverser.h b/src/util/box_traverser.h
index cb7dfeb..d59d871 100644
--- a/src/util/box_traverser.h
+++ b/src/util/box_traverser.h
@@ -1,6 +1,7 @@
#ifndef LIFE_SRC_UTIL_BOX_TRAVERSER_
#define LIFE_SRC_UTIL_BOX_TRAVERSER_
+#include <cstdint>
#include <functional>
#include "box_indicator.h"
@@ -11,13 +12,7 @@ namespace util {
struct BoxTraverser : public BoxIndicator {
using BoxIndicator::BoxIndicator;
- void for_each(const std::function<void(std::size_t, std::size_t)> f) const {
- for ( std::size_t x = this->a_x_; x < this->b_x_; x++ ) {
- for ( std::size_t y = this->a_y_; y < this->b_y_; y++ ) {
- f(x, y);
- }
- }
- }
+ void for_each(const std::function<void(std::size_t, std::size_t)>& f) const;
};
}