47 #ifndef _MIRA_REFLECTORMACROS_H_ 48 #define _MIRA_REFLECTORMACROS_H_ 56 namespace serialization::barrier {
58 template<
typename Reflector>
59 using State =
typename Reflector::ReflectState;
61 template<
typename Reflector>
64 if constexpr (Reflector::requireReflectBarriers::value) {
65 return r.preReflect(context);
72 template<
typename Reflector>
75 if constexpr (Reflector::requireReflectBarriers::value) {
76 r.postReflect(std::move(state));
109 #define MIRA_REFLECT_CALL(ReflectorType, reflector, context, COMMAND) \ 111 auto state = serialization::barrier::preCommand(reflector, context); \ 113 serialization::barrier::postCommand(reflector, std::move(state)); \ specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
void postCommand(Reflector &r, State< Reflector > &&state)
Definition: ReflectorMacros.h:73
auto preCommand(Reflector &r, const char *context) -> State< Reflector >
Definition: ReflectorMacros.h:62
typename Reflector::ReflectState State
Definition: ReflectorMacros.h:59