refactoring: templatize NaivePolicyChecker::check 43/199143/9
authorAdrian Szyndela <adrian.s@samsung.com>
Tue, 5 Feb 2019 13:17:09 +0000 (14:17 +0100)
committerAdrian Szyndela <adrian.s@samsung.com>
Tue, 12 Feb 2019 14:39:23 +0000 (15:39 +0100)
commit1bc99fe16be86a2de7d8fcc33f5fb13aafb6c4ca
tree8bea7c47e5aa93c56acfe7dcc46eab1b25ba412d
parent10cdd899509b71b23c107a6a2adb891433e5966d
refactoring: templatize NaivePolicyChecker::check

This converts check() methods for MatchItemOwn, MatchItemSend and
MatchItemReceive to single template method.
The MatchItemAccess check() method stays in place as it requires
different params.

Change-Id: Ibbc2c0498bb9289f6dbce5ffd3206abf93115d17
src/internal/internal.cpp
src/internal/naive_policy_checker.cpp
src/internal/naive_policy_checker.hpp