|
Zserio C++17 runtime library 1.3.0
Built for Zserio 2.20.0
|
#include <ReflectableUtil.h>
Static Public Member Functions | |
| template<typename ALLOC = std::allocator<uint8_t>> | |
| static bool | equal (const IBasicReflectableDataConstPtr< ALLOC > &lhs, const IBasicReflectableDataConstPtr< ALLOC > &rhs) |
| template<typename T , typename ALLOC = std::allocator<uint8_t>, typename std::enable_if< detail::gets_value_by_value< T >::value, int >::type = 0> | |
| static T | getValue (const IBasicReflectableDataConstPtr< ALLOC > &reflectable, const ALLOC &allocator=ALLOC()) |
| template<typename T , typename ALLOC = std::allocator<uint8_t>, typename std::enable_if<!detail::gets_value_by_value< T >::value, int >::type = 0> | |
| static const T & | getValue (const IBasicReflectableDataConstPtr< ALLOC > &reflectable, const ALLOC &allocator=ALLOC()) |
| template<typename T , typename ALLOC = std::allocator<uint8_t>, typename std::enable_if<!detail::gets_value_by_value< T >::value &&!std::is_same< BasicBitBuffer< ALLOC >, T >::value, int >::type = 0> | |
| static T & | getValue (const IBasicReflectableDataPtr< ALLOC > &reflectable, const ALLOC &allocator=ALLOC()) |
| template<typename T , typename ALLOC = std::allocator<uint8_t>, typename std::enable_if< std::is_same< BasicBitBuffer< ALLOC >, T >::value, int >::type = 0> | |
| static const T & | getValue (const IBasicReflectableDataPtr< ALLOC > &reflectable, const ALLOC &allocator=ALLOC()) |
| template<typename T , typename ALLOC > | |
| static T | fromAny (const BasicAny< ALLOC > &any) |
Utilities on zserio reflectable interface.
Definition at line 35 of file ReflectableUtil.h.
|
static |
Makes "deep" comparison of given reflectables.
| lhs | Left-hand side reflectable. |
| rhs | Right-hand side reflectable. |
Definition at line 161 of file ReflectableUtil.h.
Gets a zserio type T from any value.
| any | Any value. |
| CppRuntimeException | When wrong type is present in the any value ("Bad type in BasicAny"). |
Definition at line 314 of file ReflectableUtil.h.
|
inlinestatic |
Gets native value from the given reflectable.
Overload for types where the value is returned by value:
| reflectable | Reflectable to use for value extraction. |
Definition at line 65 of file ReflectableUtil.h.
|
inlinestatic |
Gets constant reference to the native value from the given constant reflectable.
Overload for types where the value is returned by const reference:
| reflectable | Constant reflectable to use for value extraction. |
| CppRuntimeException | When wrong type is requested ("Bad type in AnyHolder"). |
Definition at line 85 of file ReflectableUtil.h.
|
inlinestatic |
Gets reference to the native value from the given reflectable.
Overload for types where the value is returned by reference:
| reflectable | Reflectable to use for value extraction. |
| CppRuntimeException | When wrong type is requested ("Bad type in AnyHolder"). |
Definition at line 108 of file ReflectableUtil.h.
|
inlinestatic |
Gets constant reference to the native value from the given reflectable.
Overload for bit buffers which are currently returned only by constant reference.
| reflectable | Reflectable to use for value extraction. |
| CppRuntimeException | When wrong type is requested ("Bad type in BasicAny"). |
Definition at line 126 of file ReflectableUtil.h.