summaryrefslogtreecommitdiffstats
path: root/src/test/templates/callbackgentest.mako.hpp
blob: 44a02a4e3b5bbbeb9e4f2884fe86a00b10abad95 (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(callbacks)}> callbacks = {{
% for c in callbacks:
    std::tuple<std::string, size_t>{"${c.datatype}", ${c.instances}},
% endfor
}};
OpenPOWER on IntegriCloud