summaryrefslogtreecommitdiffstats
path: root/src/test/templates/propertywatchgentest.mako.hpp
blob: 4fe3be8f4435f4dfed5ff741eba0e81d8cf1d554 (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)}> indices = {{
% 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