Skip to content

Commit

Permalink
Tiny tweaks to code.
Browse files Browse the repository at this point in the history
  • Loading branch information
rec committed Aug 2, 2015
1 parent 62df0fe commit 0ee96f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions code/cpp/echomesh/color/Combine.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,20 @@ class FColor;
class FColorList;

typedef void (*CombinerFunction)(FColor const&, FColor&);
using ColumnList = vector<int>;

enum class Combiner { XOR, ADD, SUBTRACT, MULTIPLY, DIVIDE, MIN, MAX, AND, OR };

using FColorListList = vector <FColorList*>;

FColorList combine(FColorListList const&, Combiner);
FColorList combine(FColorListList const&, CombinerFunction);

/** Not yet implemented. */
FColorList combine(FColorListList const&, ColumnList const& columns,
CombinerFunction);


CombinerFunction getCombinerFunction(string const&);
string combinerNames();

Expand Down
2 changes: 2 additions & 0 deletions code/python/echomesh/util/TestCase.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ def assertNear(self, x, y, msg=None):
self.assertEquals(lx, ly)
for xi, yi in zip(x, y):
self.assertNear(xi, yi, msg)

main = unittest.main

0 comments on commit 0ee96f5

Please sign in to comment.