Zserio C++17 runtime library
0.5.0
Built for Zserio 2.17.0
|
#include <Extended.h>
Public Member Functions | |
Extended (Extended &&other)=default | |
template<typename ALLOC > | |
Extended (Extended &&other, const ALLOC &allocator) | |
Extended (const Extended &other)=default | |
template<typename ALLOC > | |
Extended (const Extended &other, const ALLOC &allocator) | |
template<typename... ARGS, typename = std::enable_if_t<!detail::is_single_type_v<Extended, ARGS...> && std::is_constructible_v<T, ARGS...>>> | |
constexpr | Extended (ARGS &&... args) |
Extended & | operator= (Extended &&other)=default |
Extended & | operator= (const Extended &other)=default |
~Extended ()=default | |
constexpr const T & | value () const noexcept |
T & | value () noexcept |
constexpr T & | operator* () noexcept |
constexpr const T & | operator* () const noexcept |
T * | operator-> () noexcept |
const T * | operator-> () const noexcept |
constexpr | operator bool () const noexcept |
bool | isPresent () const noexcept |
void | setPresent (bool present) noexcept |
Wrapper around an extended field (defined using 'extended' keyword in Zserio schema).
The value storage is always allocated, even though the field is not present. This allows to easily keep continuous allocation and the behaviour is the same as was in the old C++11 generator.
Definition at line 32 of file Extended.h.
|
default |
|
inline |
Definition at line 38 of file Extended.h.
|
default |
|
inline |
Definition at line 46 of file Extended.h.
|
inlineexplicitconstexpr |
In-place extended value constructor from T's arguments.
Definition at line 57 of file Extended.h.
|
default |
|
inlinenoexcept |
Gets whether the extended value is present.
Definition at line 141 of file Extended.h.
|
inlineexplicitconstexprnoexcept |
Explicit bool conversion operators - provided for convenience.
Definition at line 131 of file Extended.h.
|
inlineconstexprnoexcept |
Returns the extended value.
Definition at line 101 of file Extended.h.
|
inlineconstexprnoexcept |
Returns the extended value.
Definition at line 91 of file Extended.h.
|
inlinenoexcept |
Returns the extended value.
Definition at line 121 of file Extended.h.
|
inlinenoexcept |
Returns the extended value.
Definition at line 111 of file Extended.h.
|
default |
|
default |
|
inlinenoexcept |
Sets whether the extended value is present.
Note that setting of the presence manually can lead to an invalid zserio object, which will not pass the zserio::detail::validate step. This method is designed to be used by zserio::detail::read. If there is a strong need to modify the presence manually it must be ensured that:
present | True when the extended value is present, false otherwise. |
Definition at line 159 of file Extended.h.
|
inlineconstexprnoexcept |
Const extended value getter.
Definition at line 71 of file Extended.h.
|
inlinenoexcept |
Non-const extended value getter.
Definition at line 81 of file Extended.h.