Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nilason committed Nov 21, 2022
1 parent 9ca17df commit b0f2ff6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
4 changes: 2 additions & 2 deletions raster/r.terraflow/ccforest.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ class keyvalue {
keyvalue(T vk, T vv) : key(vk), value(vv) {};

keyvalue(const keyvalue &) = default;
keyvalue& operator=(const keyvalue &) = default;
keyvalue &operator=(const keyvalue &) = default;
keyvalue(keyvalue &&) = default;
keyvalue& operator=(keyvalue &&) = default;
keyvalue &operator=(keyvalue &&) = default;
~keyvalue() = default;

T getPriority() const { return key; };
Expand Down
30 changes: 17 additions & 13 deletions raster/r.terraflow/sweep.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,16 @@ class flowPriority {
dimension_type i,j;

public:
flowPriority(elevation_type a=0, toporank_type b=0,
dimension_type c=0, dimension_type d=0):
h(a), toporank(b), i(c), j(d) {}
flowPriority(elevation_type a = 0, toporank_type b = 0,
dimension_type c = 0, dimension_type d = 0)
: h(a), toporank(b), i(c), j(d)
{
}

flowPriority(const flowPriority &) = default;
flowPriority& operator=(const flowPriority &) = default;
flowPriority &operator=(const flowPriority &) = default;
flowPriority(flowPriority &&) = default;
flowPriority& operator=(flowPriority &&) = default;
flowPriority &operator=(flowPriority &&) = default;
~flowPriority() = default;

elevation_type field1() const {
Expand Down Expand Up @@ -439,9 +441,9 @@ class flowValue {
flowValue(flowaccumulation_type x=0): value(x) {}

flowValue(const flowValue &) = default;
flowValue& operator=(const flowValue &) = default;
flowValue &operator=(const flowValue &) = default;
flowValue(flowValue &&) = default;
flowValue& operator=(flowValue &&) = default;
flowValue &operator=(flowValue &&) = default;
~flowValue() = default;

flowaccumulation_type get() const {
Expand Down Expand Up @@ -493,15 +495,17 @@ class flowStructure {

public:

flowStructure(const flowPriority &p = 0, const flowValue &e = 0):
prio(p), val(e) {}

flowStructure(const flowPriority &p = 0, const flowValue &e = 0)
: prio(p), val(e)
{
}

flowStructure(const flowStructure &) = default;
flowStructure& operator=(const flowStructure &) = default;
flowStructure &operator=(const flowStructure &) = default;
flowStructure(flowStructure &&) = default;
flowStructure& operator=(flowStructure &&) = default;
flowStructure &operator=(flowStructure &&) = default;
~flowStructure() = default;

flowPriority getPriority() const {
return prio;
}
Expand Down

0 comments on commit b0f2ff6

Please sign in to comment.