Module: check_mk
Branch: master
Commit: 55c2ca28575562515e667a667d4de9e6f4a5d888
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=55c2ca28575562…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Mar 15 10:26:59 2018 +0100
Make filter smart constructors actually smart.
Actually, the constructors are only partially smart: They handle just
associativity and identity, but this probably enough for our purposes.
Added a type alias for filters on the way.
Change-Id: I3706ffc9a0dd779e8e33d9dff22ac1bddd569985
---
livestatus/src/AndingFilter.cc | 45 +++++++++++++++++++++++++++++++-----------
livestatus/src/AndingFilter.h | 13 ++++++------
livestatus/src/ColumnFilter.cc | 22 ++++++++++++++++-----
livestatus/src/ColumnFilter.h | 4 ++++
livestatus/src/Filter.h | 19 ++++++++++++++++++
livestatus/src/OringFilter.cc | 44 +++++++++++++++++++++++++++++++----------
livestatus/src/OringFilter.h | 13 ++++++------
livestatus/src/Query.cc | 4 ++--
livestatus/src/Query.h | 6 +++---
livestatus/src/StatsColumn.cc | 4 +---
10 files changed, 128 insertions(+), 46 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=55c2ca2857…