serialization: extract mapGroups from pimpl of DB 02/200402/6
authorAdrian Szyndela <adrian.s@samsung.com>
Fri, 22 Feb 2019 15:49:18 +0000 (16:49 +0100)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Thu, 7 Mar 2019 07:37:15 +0000 (07:37 +0000)
commit30d9b4264cb99459ea705f41d953eb22368fa4a4
tree42aafb76d8219b4d256444c164b1cd361cf67b1a
parentf5d6337acbd3c53f17106ce3b46c174f4bf27a00
serialization: extract mapGroups from pimpl of DB

Previously, mapGroups were incorporated into PolicySets in pimpl
NaivePolicyDbImpl. But they are in fact not a part of policies.
They are gathered from the system and only filtered through policy data.

This commit extracts mapGroups from pimpl back to NaivePolicyDb,
with some required changes to work with current interfaces, and also with
some not required, but fun changes.
The extraction will allow switching pimpl in the future, keeping the same
groups logic for any pimpl.

Change-Id: I3e1dace93bebb7e19c94cacd7fbf7ceb426d315e
src/internal/naive_policy_db.cpp
src/internal/naive_policy_db.hpp
src/internal/policy.hpp
src/internal/type_list.h [new file with mode: 0644]