Public API

Namespaces

toml

Defines

Defines (color.hpp)

TOML11_ERROR_MESSAGE_COLORIZED false

Defines (comments.hpp)

TOML11_DEFAULT_COMMENT_STRATEGY ::toml::discard_comments

Defines (macros.hpp)

TOML11_STRINGIZE_AUX(x)
#x

TOML11_STRINGIZE(x)
TOML11_STRINGIZE_AUX(x)

TOML11_CONCATENATE_AUX(x,y)
x##y

TOML11_CONCATENATE(x,y)
TOML11_CONCATENATE_AUX(x, y)

TOML11_INDEX_RSEQ()
32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17,
16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0

TOML11_ARGS_SIZE_IMPL(ARG1,ARG2,ARG3,ARG4,ARG5,ARG6,ARG7,ARG8,ARG9,ARG10,ARG11,ARG12,ARG13,ARG14,ARG15,ARG16,ARG17,ARG18,ARG19,ARG20,ARG21,ARG22,ARG23,ARG24,ARG25,ARG26,ARG27,ARG28,ARG29,ARG30,ARG31,ARG32,N,...)
N

TOML11_ARGS_SIZE_AUX(...)
TOML11_ARGS_SIZE_IMPL(__VA_ARGS__)

TOML11_ARGS_SIZE(...)
TOML11_ARGS_SIZE_AUX(__VA_ARGS__, TOML11_INDEX_RSEQ())

TOML11_FOR_EACH_VA_ARGS_AUX_1(FUNCTOR,ARG1)
FUNCTOR(ARG1)

TOML11_FOR_EACH_VA_ARGS_AUX_2(FUNCTOR,ARG1,...)
FUNCTOR(ARG1) TOML11_FOR_EACH_VA_ARGS_AUX_1( FUNCTOR, __VA_ARGS__)

TOML11_FOR_EACH_VA_ARGS_AUX_3(FUNCTOR,ARG1,...)
FUNCTOR(ARG1) TOML11_FOR_EACH_VA_ARGS_AUX_2( FUNCTOR, __VA_ARGS__)

TOML11_FOR_EACH_VA_ARGS_AUX_4(FUNCTOR,ARG1,...)
FUNCTOR(ARG1) TOML11_FOR_EACH_VA_ARGS_AUX_3( FUNCTOR, __VA_ARGS__)

TOML11_FOR_EACH_VA_ARGS_AUX_5(FUNCTOR,ARG1,...)
FUNCTOR(ARG1) TOML11_FOR_EACH_VA_ARGS_AUX_4( FUNCTOR, __VA_ARGS__)

TOML11_FOR_EACH_VA_ARGS_AUX_6(FUNCTOR,ARG1,...)
FUNCTOR(ARG1) TOML11_FOR_EACH_VA_ARGS_AUX_5( FUNCTOR, __VA_ARGS__)

TOML11_FOR_EACH_VA_ARGS_AUX_7(FUNCTOR,ARG1,...)
FUNCTOR(ARG1) TOML11_FOR_EACH_VA_ARGS_AUX_6( FUNCTOR, __VA_ARGS__)

TOML11_FOR_EACH_VA_ARGS_AUX_8(FUNCTOR,ARG1,...)
FUNCTOR(ARG1) TOML11_FOR_EACH_VA_ARGS_AUX_7( FUNCTOR, __VA_ARGS__)

TOML11_FOR_EACH_VA_ARGS_AUX_9(FUNCTOR,ARG1,...)
FUNCTOR(ARG1) TOML11_FOR_EACH_VA_ARGS_AUX_8( FUNCTOR, __VA_ARGS__)

TOML11_FOR_EACH_VA_ARGS_AUX_10(FUNCTOR,ARG1,...)
FUNCTOR(ARG1) TOML11_FOR_EACH_VA_ARGS_AUX_9( FUNCTOR, __VA_ARGS__)

TOML11_FOR_EACH_VA_ARGS_AUX_11(FUNCTOR,ARG1,...)
FUNCTOR(ARG1) TOML11_FOR_EACH_VA_ARGS_AUX_10(FUNCTOR, __VA_ARGS__)

TOML11_FOR_EACH_VA_ARGS_AUX_12(FUNCTOR,ARG1,...)
FUNCTOR(ARG1) TOML11_FOR_EACH_VA_ARGS_AUX_11(FUNCTOR, __VA_ARGS__)

TOML11_FOR_EACH_VA_ARGS_AUX_13(FUNCTOR,ARG1,...)
FUNCTOR(ARG1) TOML11_FOR_EACH_VA_ARGS_AUX_12(FUNCTOR, __VA_ARGS__)

TOML11_FOR_EACH_VA_ARGS_AUX_14(FUNCTOR,ARG1,...)
FUNCTOR(ARG1) TOML11_FOR_EACH_VA_ARGS_AUX_13(FUNCTOR, __VA_ARGS__)

TOML11_FOR_EACH_VA_ARGS_AUX_15(FUNCTOR,ARG1,...)
FUNCTOR(ARG1) TOML11_FOR_EACH_VA_ARGS_AUX_14(FUNCTOR, __VA_ARGS__)

TOML11_FOR_EACH_VA_ARGS_AUX_16(FUNCTOR,ARG1,...)
FUNCTOR(ARG1) TOML11_FOR_EACH_VA_ARGS_AUX_15(FUNCTOR, __VA_ARGS__)

TOML11_FOR_EACH_VA_ARGS_AUX_17(FUNCTOR,ARG1,...)
FUNCTOR(ARG1) TOML11_FOR_EACH_VA_ARGS_AUX_16(FUNCTOR, __VA_ARGS__)

TOML11_FOR_EACH_VA_ARGS_AUX_18(FUNCTOR,ARG1,...)
FUNCTOR(ARG1) TOML11_FOR_EACH_VA_ARGS_AUX_17(FUNCTOR, __VA_ARGS__)

TOML11_FOR_EACH_VA_ARGS_AUX_19(FUNCTOR,ARG1,...)
FUNCTOR(ARG1) TOML11_FOR_EACH_VA_ARGS_AUX_18(FUNCTOR, __VA_ARGS__)

TOML11_FOR_EACH_VA_ARGS_AUX_20(FUNCTOR,ARG1,...)
FUNCTOR(ARG1) TOML11_FOR_EACH_VA_ARGS_AUX_19(FUNCTOR, __VA_ARGS__)

TOML11_FOR_EACH_VA_ARGS_AUX_21(FUNCTOR,ARG1,...)
FUNCTOR(ARG1) TOML11_FOR_EACH_VA_ARGS_AUX_20(FUNCTOR, __VA_ARGS__)

TOML11_FOR_EACH_VA_ARGS_AUX_22(FUNCTOR,ARG1,...)
FUNCTOR(ARG1) TOML11_FOR_EACH_VA_ARGS_AUX_21(FUNCTOR, __VA_ARGS__)

TOML11_FOR_EACH_VA_ARGS_AUX_23(FUNCTOR,ARG1,...)
FUNCTOR(ARG1) TOML11_FOR_EACH_VA_ARGS_AUX_22(FUNCTOR, __VA_ARGS__)

TOML11_FOR_EACH_VA_ARGS_AUX_24(FUNCTOR,ARG1,...)
FUNCTOR(ARG1) TOML11_FOR_EACH_VA_ARGS_AUX_23(FUNCTOR, __VA_ARGS__)

TOML11_FOR_EACH_VA_ARGS_AUX_25(FUNCTOR,ARG1,...)
FUNCTOR(ARG1) TOML11_FOR_EACH_VA_ARGS_AUX_24(FUNCTOR, __VA_ARGS__)

TOML11_FOR_EACH_VA_ARGS_AUX_26(FUNCTOR,ARG1,...)
FUNCTOR(ARG1) TOML11_FOR_EACH_VA_ARGS_AUX_25(FUNCTOR, __VA_ARGS__)

TOML11_FOR_EACH_VA_ARGS_AUX_27(FUNCTOR,ARG1,...)
FUNCTOR(ARG1) TOML11_FOR_EACH_VA_ARGS_AUX_26(FUNCTOR, __VA_ARGS__)

TOML11_FOR_EACH_VA_ARGS_AUX_28(FUNCTOR,ARG1,...)
FUNCTOR(ARG1) TOML11_FOR_EACH_VA_ARGS_AUX_27(FUNCTOR, __VA_ARGS__)

TOML11_FOR_EACH_VA_ARGS_AUX_29(FUNCTOR,ARG1,...)
FUNCTOR(ARG1) TOML11_FOR_EACH_VA_ARGS_AUX_28(FUNCTOR, __VA_ARGS__)

TOML11_FOR_EACH_VA_ARGS_AUX_30(FUNCTOR,ARG1,...)
FUNCTOR(ARG1) TOML11_FOR_EACH_VA_ARGS_AUX_29(FUNCTOR, __VA_ARGS__)

TOML11_FOR_EACH_VA_ARGS_AUX_31(FUNCTOR,ARG1,...)
FUNCTOR(ARG1) TOML11_FOR_EACH_VA_ARGS_AUX_30(FUNCTOR, __VA_ARGS__)

TOML11_FOR_EACH_VA_ARGS_AUX_32(FUNCTOR,ARG1,...)
FUNCTOR(ARG1) TOML11_FOR_EACH_VA_ARGS_AUX_31(FUNCTOR, __VA_ARGS__)

TOML11_FOR_EACH_VA_ARGS(FUNCTOR,...)
TOML11_CONCATENATE(TOML11_FOR_EACH_VA_ARGS_AUX_, TOML11_ARGS_SIZE(__VA_ARGS__))(FUNCTOR, __VA_ARGS__)

TOML11_FIND_MEMBER_VARIABLE_FROM_VALUE(VAR_NAME)
obj.VAR_NAME = toml::find<decltype(obj.VAR_NAME)>(v, TOML11_STRINGIZE(VAR_NAME));

TOML11_ASSIGN_MEMBER_VARIABLE_TO_VALUE(VAR_NAME)
v[TOML11_STRINGIZE(VAR_NAME)] = obj.VAR_NAME;

TOML11_DEFINE_CONVERSION_NON_INTRUSIVE(NAME,...)
namespace toml {
template<>
struct from<NAME>
{
template<typename C, template<typename ...> class T,
template<typename ...> class A>
static NAME from_toml(const basic_value<C, T, A>& v)
{
NAME obj;
TOML11_FOR_EACH_VA_ARGS(TOML11_FIND_MEMBER_VARIABLE_FROM_VALUE, __VA_ARGS__)
return obj;
}
};
template<>
struct into<NAME>
{
static value into_toml(const NAME& obj)
{
::toml::value v = ::toml::table{};
TOML11_FOR_EACH_VA_ARGS(TOML11_ASSIGN_MEMBER_VARIABLE_TO_VALUE, __VA_ARGS__)
return v;
}
};
} /* toml */

Mentioned in:

Defines (utility.hpp)

TOML11_MARK_AS_DEPRECATED

Defines (value.hpp)

TOML11_GENERATE_SWITCH_CASTER(TYPE)
template<>
struct switch_cast<value_t::TYPE>
{
template<typename Value>
static typename Value::TYPE##_type& invoke(Value& v)
{
return v.as_##TYPE();
}
template<typename Value>
static typename Value::TYPE##_type const& invoke(const Value& v)
{
return v.as_##TYPE();
}
template<typename Value>
static typename Value::TYPE##_type&& invoke(Value&& v)
{
return std::move(v).as_##TYPE();
}
}; \






Add Discussion as Guest

Log in