Zserio C++ runtime library
1.1.0
Built for Zserio 2.15.0
|
#include <TypeInfo.h>
Public Types | |
using | CreateInstanceFunc = typename CompoundTypeInfoBase< ALLOC >::CreateInstanceFunc |
Public Types inherited from zserio::CompoundTypeInfoBase< ALLOC > | |
using | CreateInstanceFunc = IBasicReflectablePtr< ALLOC >(*)(const ALLOC &) |
Type information class for choice types.
Definition at line 575 of file TypeInfo.h.
using zserio::ChoiceTypeInfo< ALLOC >::CreateInstanceFunc = typename CompoundTypeInfoBase<ALLOC>::CreateInstanceFunc |
Definition at line 578 of file TypeInfo.h.
zserio::ChoiceTypeInfo< ALLOC >::ChoiceTypeInfo | ( | StringView | schemaName, |
CreateInstanceFunc | createInstanceFunc, | ||
StringView | templateName, | ||
Span< const BasicTemplateArgumentInfo< ALLOC >> | templateArguments, | ||
Span< const BasicFieldInfo< ALLOC >> | fields, | ||
Span< const BasicParameterInfo< ALLOC >> | parameters, | ||
Span< const BasicFunctionInfo< ALLOC >> | functions, | ||
StringView | selector, | ||
Span< const BasicCaseInfo< ALLOC >> | cases | ||
) |
Constructor.
schemaName | The schema name to be stored in type information. |
templateName | The full schema template name. |
templateArguments | The sequence of type information for template arguments. |
fields | The sequence of type information for fields. |
parameters | The sequence of type information for parameters. |
functions | The sequence of type information for functions. |
selector | The selector expression. |
cases | The sequence of type information for cases. |
Definition at line 1613 of file TypeInfo.h.
|
overridevirtual |
Gets the type information for choice type cases.
CppRuntimeException | If the zserio type is not choice type. |
Reimplemented from zserio::TypeInfoBase< ALLOC >.
Definition at line 1631 of file TypeInfo.h.
|
overridevirtual |
Gets the selector for choice type.
CppRuntimeException | If the zserio type is not choice type. |
Reimplemented from zserio::TypeInfoBase< ALLOC >.
Definition at line 1625 of file TypeInfo.h.