object-introspection/types/boost_bimap_type.toml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
819 B
TOML
Raw Permalink Normal View History

2022-12-19 14:37:51 +00:00
[info]
type_name = "boost::bimap"
2022-12-19 14:37:51 +00:00
ctype = "BOOST_BIMAP_TYPE"
header = "boost/bimap.hpp"
# Old:
numTemplateParams = 2
typeName = "boost::bimap"
2022-12-19 14:37:51 +00:00
ns = ["boost::bimap"]
[codegen]
decl = """
template <class KeyTypeA, class KeyTypeB, class AP1, class AP2, class AP3>
void getSizeType(const %1%<KeyTypeA, KeyTypeB, AP1, AP2, AP3> &container,
size_t& returnArg);
"""
func = """
template <class KeyTypeA, class KeyTypeB, class AP1, class AP2, class AP3>
void getSizeType(const %1%<KeyTypeA, KeyTypeB, AP1, AP2, AP3> &container,
size_t& returnArg)
{
SAVE_SIZE(sizeof(%1%<KeyTypeA, KeyTypeB, AP1, AP2, AP3>));
SAVE_DATA((uintptr_t)container.size());
for (auto const& it: container) {
getSizeType(it.left, returnArg);
getSizeType(it.right, returnArg);
}
}
"""