summaryrefslogtreecommitdiffstats
path: root/src/test/templates/propertywatchgentest.mako.hpp
blob: ac4dbee93541278128b934e1bfdea983c3b525fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
auto storageCount = ${len(instances)};

const std::array<Index, ${len(instancegroups)}> indicies = {{
% for g in instancegroups:
    {
    % for i in g.members:
        {Index::key_type{${i[0]}, ${i[2]}, ${i[3]}}, ${i[5]}},
    % endfor
    },
% endfor
}};

const std::array<std::tuple<std::string, size_t>, ${len(watches)}> watches = {{
% for w in watches:
    std::tuple<std::string, size_t>{"${w.datatype}", ${w.instances}},
% endfor
}};
OpenPOWER on IntegriCloud