swift
Loading...
Searching...
No Matches
mixinjson.h File Reference

Go to the source code of this file.

Classes

class  swift::misc::mixin::JsonOperators< Derived >
 CRTP class template which will generate marshalling operators for a derived class with its own marshalling implementation. More...
class  swift::misc::mixin::JsonByMetaClass< Derived >
 CRTP class template from which a derived class can inherit common methods dealing with JSON by metatuple. More...

Namespaces

namespace  swift::misc
 Free functions in swift::misc.
namespace  swift::misc::mixin
 Mixin classes which implement common operations for value classes.

Macros

#define SWIFT_MISC_DECLARE_USING_MIXIN_JSON(DERIVED)
 When a derived class and a base class both inherit from mixin::JsonByTuple, the derived class uses this macro to disambiguate the inherited members.

Macro Definition Documentation

◆ SWIFT_MISC_DECLARE_USING_MIXIN_JSON

#define SWIFT_MISC_DECLARE_USING_MIXIN_JSON ( DERIVED)
Value:
using ::swift::misc::mixin::JsonByMetaClass<DERIVED>::toJson; \
using ::swift::misc::mixin::JsonByMetaClass<DERIVED>::convertFromJson;

When a derived class and a base class both inherit from mixin::JsonByTuple, the derived class uses this macro to disambiguate the inherited members.

Definition at line 287 of file mixinjson.h.