Zserio C++ runtime library  1.2.0
Built for Zserio 2.16.0
zserio::BuiltinTypeInfo< ALLOC > Class Template Reference

#include <TypeInfo.h>

Inheritance diagram for zserio::BuiltinTypeInfo< ALLOC >:
Collaboration diagram for zserio::BuiltinTypeInfo< ALLOC >:

Static Public Member Functions

static const IBasicTypeInfo< ALLOC > & getBool ()
 
static const IBasicTypeInfo< ALLOC > & getInt8 ()
 
static const IBasicTypeInfo< ALLOC > & getInt16 ()
 
static const IBasicTypeInfo< ALLOC > & getInt32 ()
 
static const IBasicTypeInfo< ALLOC > & getInt64 ()
 
static const IBasicTypeInfo< ALLOC > & getUInt8 ()
 
static const IBasicTypeInfo< ALLOC > & getUInt16 ()
 
static const IBasicTypeInfo< ALLOC > & getUInt32 ()
 
static const IBasicTypeInfo< ALLOC > & getUInt64 ()
 
static const IBasicTypeInfo< ALLOC > & getVarInt16 ()
 
static const IBasicTypeInfo< ALLOC > & getVarInt32 ()
 
static const IBasicTypeInfo< ALLOC > & getVarInt64 ()
 
static const IBasicTypeInfo< ALLOC > & getVarInt ()
 
static const IBasicTypeInfo< ALLOC > & getVarUInt16 ()
 
static const IBasicTypeInfo< ALLOC > & getVarUInt32 ()
 
static const IBasicTypeInfo< ALLOC > & getVarUInt64 ()
 
static const IBasicTypeInfo< ALLOC > & getVarUInt ()
 
static const IBasicTypeInfo< ALLOC > & getVarSize ()
 
static const IBasicTypeInfo< ALLOC > & getFloat16 ()
 
static const IBasicTypeInfo< ALLOC > & getFloat32 ()
 
static const IBasicTypeInfo< ALLOC > & getFloat64 ()
 
static const IBasicTypeInfo< ALLOC > & getBytes ()
 
static const IBasicTypeInfo< ALLOC > & getString ()
 
static const IBasicTypeInfo< ALLOC > & getBitBuffer ()
 
static const IBasicTypeInfo< ALLOC > & getFixedSignedBitField (uint8_t bitSize)
 
static const IBasicTypeInfo< ALLOC > & getFixedUnsignedBitField (uint8_t bitSize)
 
static const IBasicTypeInfo< ALLOC > & getDynamicSignedBitField (uint8_t maxBitSize)
 
static const IBasicTypeInfo< ALLOC > & getDynamicUnsignedBitField (uint8_t maxBitSize)
 

Protected Member Functions

 BuiltinTypeInfo (StringView schemaName, SchemaType schemaType, CppType cppType)
 

Additional Inherited Members

- Public Member Functions inherited from zserio::TypeInfoBase< std::allocator< uint8_t > >
 TypeInfoBase (StringView schemaName, SchemaType schemaType, CppType cppType)
 
 ~TypeInfoBase () override=0
 
StringView getSchemaName () const override
 
SchemaType getSchemaType () const override
 
CppType getCppType () const override
 
uint8_t getBitSize () const override
 
Span< const BasicFieldInfo< std::allocator< uint8_t > > > getFields () const override
 
Span< const BasicParameterInfo< std::allocator< uint8_t > > > getParameters () const override
 
Span< const BasicFunctionInfo< std::allocator< uint8_t > > > getFunctions () const override
 
StringView getSelector () const override
 
Span< const BasicCaseInfo< std::allocator< uint8_t > > > getCases () const override
 
const IBasicTypeInfo< std::allocator< uint8_t > > & getUnderlyingType () const override
 
Span< const StringViewgetUnderlyingTypeArguments () const override
 
Span< const ItemInfogetEnumItems () const override
 
Span< const ItemInfogetBitmaskValues () const override
 
Span< const BasicColumnInfo< std::allocator< uint8_t > > > getColumns () const override
 
StringView getSqlConstraint () const override
 
StringView getVirtualTableUsing () const override
 
bool isWithoutRowId () const override
 
Span< const BasicTableInfo< std::allocator< uint8_t > > > getTables () const override
 
StringView getTemplateName () const override
 
Span< const BasicTemplateArgumentInfo< std::allocator< uint8_t > > > getTemplateArguments () const override
 
Span< const BasicMessageInfo< std::allocator< uint8_t > > > getMessages () const override
 
Span< const BasicMethodInfo< std::allocator< uint8_t > > > getMethods () const override
 
IBasicReflectablePtr< std::allocator< uint8_t > > createInstance (const std::allocator< uint8_t > &allocator) const override
 
IBasicReflectablePtr< std::allocator< uint8_t > > createInstance () const override
 
 TypeInfoBase (const TypeInfoBase &)=delete
 
 TypeInfoBase (const TypeInfoBase &&)=delete
 
TypeInfoBaseoperator= (const TypeInfoBase &)=delete
 
TypeInfoBaseoperator= (const TypeInfoBase &&)=delete
 
- Public Member Functions inherited from zserio::IBasicTypeInfo< std::allocator< uint8_t > >
virtual ~IBasicTypeInfo ()=default
 
virtual IBasicReflectablePtr< std::allocator< uint8_t > > createInstance (const std::allocator< uint8_t > &allocator) const=0
 

Detailed Description

template<typename ALLOC = std::allocator<uint8_t>>
class zserio::BuiltinTypeInfo< ALLOC >

Type information abstract base class for builtin types.

Definition at line 93 of file TypeInfo.h.

Constructor & Destructor Documentation

◆ BuiltinTypeInfo()

template<typename ALLOC >
zserio::BuiltinTypeInfo< ALLOC >::BuiltinTypeInfo ( StringView  schemaName,
SchemaType  schemaType,
CppType  cppType 
)
protected

Constructor.

Parameters
schemaNameThe schema name to be stored in type information.
schemaTypeThe schema type to be stored in type information.
cppTypeThe C++ type to be stored in type information.

Definition at line 1006 of file TypeInfo.h.

Member Function Documentation

◆ getBitBuffer()

template<typename ALLOC >
const IBasicTypeInfo< ALLOC > & zserio::BuiltinTypeInfo< ALLOC >::getBitBuffer
static

Gets the type information of extern schema type.

Returns
Reference to the type information of extern schema type.

Definition at line 1170 of file TypeInfo.h.

◆ getBool()

template<typename ALLOC >
const IBasicTypeInfo< ALLOC > & zserio::BuiltinTypeInfo< ALLOC >::getBool
static

Gets the type information of bool schema type.

Returns
Reference to the type information of bool schema type.

Definition at line 1011 of file TypeInfo.h.

◆ getBytes()

template<typename ALLOC >
const IBasicTypeInfo< ALLOC > & zserio::BuiltinTypeInfo< ALLOC >::getBytes
static

Gets the type information of bytes schema type.

Returns
Reference to the type information of bytes schema type.

Definition at line 1155 of file TypeInfo.h.

◆ getDynamicSignedBitField()

template<typename ALLOC >
const IBasicTypeInfo< ALLOC > & zserio::BuiltinTypeInfo< ALLOC >::getDynamicSignedBitField ( uint8_t  maxBitSize)
static

Gets the type information of dynamic signed bit field schema type.

Parameters
maxBitSizeThe maximum bit size of the dynamic bit field.
Returns
Reference to the type information of dynamic signed bit field schema type.

Definition at line 1190 of file TypeInfo.h.

◆ getDynamicUnsignedBitField()

template<typename ALLOC >
const IBasicTypeInfo< ALLOC > & zserio::BuiltinTypeInfo< ALLOC >::getDynamicUnsignedBitField ( uint8_t  maxBitSize)
static

Gets the type information of dynamic unsigned bit field schema type.

Parameters
maxBitSizeThe maximum bit size of the dynamic bit field.
Returns
Reference to the type information of dynamic unsigned bit field schema type.

Definition at line 1225 of file TypeInfo.h.

◆ getFixedSignedBitField()

template<typename ALLOC >
const IBasicTypeInfo< ALLOC > & zserio::BuiltinTypeInfo< ALLOC >::getFixedSignedBitField ( uint8_t  bitSize)
static

Gets the type information of fixed signed bit field schema type.

Parameters
bitSizeThe bit size of the bit field.
Returns
Reference to the type information of fixed signed bit field schema type.

Definition at line 1178 of file TypeInfo.h.

◆ getFixedUnsignedBitField()

template<typename ALLOC >
const IBasicTypeInfo< ALLOC > & zserio::BuiltinTypeInfo< ALLOC >::getFixedUnsignedBitField ( uint8_t  bitSize)
static

Gets the type information of fixed unsigned bit field schema type.

Parameters
bitSizeThe bit size of the bit field.
Returns
Reference to the type information of fixed unsigned bit field schema type.

Definition at line 1184 of file TypeInfo.h.

◆ getFloat16()

template<typename ALLOC >
const IBasicTypeInfo< ALLOC > & zserio::BuiltinTypeInfo< ALLOC >::getFloat16
static

Gets the type information of float16 schema type.

Returns
Reference to the type information of float16 schema type.

Definition at line 1137 of file TypeInfo.h.

◆ getFloat32()

template<typename ALLOC >
const IBasicTypeInfo< ALLOC > & zserio::BuiltinTypeInfo< ALLOC >::getFloat32
static

Gets the type information of float32 schema type.

Returns
Reference to the type information of float32 schema type.

Definition at line 1143 of file TypeInfo.h.

◆ getFloat64()

template<typename ALLOC >
const IBasicTypeInfo< ALLOC > & zserio::BuiltinTypeInfo< ALLOC >::getFloat64
static

Gets the type information of float64 schema type.

Returns
Reference to the type information of float64 schema type.

Definition at line 1149 of file TypeInfo.h.

◆ getInt16()

template<typename ALLOC >
const IBasicTypeInfo< ALLOC > & zserio::BuiltinTypeInfo< ALLOC >::getInt16
static

Gets the type information of int16 schema type.

Returns
Reference to the type information of int16 schema type.

Definition at line 1023 of file TypeInfo.h.

◆ getInt32()

template<typename ALLOC >
const IBasicTypeInfo< ALLOC > & zserio::BuiltinTypeInfo< ALLOC >::getInt32
static

Gets the type information of int32 schema type.

Returns
Reference to the type information of int32 schema type.

Definition at line 1029 of file TypeInfo.h.

◆ getInt64()

template<typename ALLOC >
const IBasicTypeInfo< ALLOC > & zserio::BuiltinTypeInfo< ALLOC >::getInt64
static

Gets the type information of int64 schema type.

Returns
Reference to the type information of int64 schema type.

Definition at line 1035 of file TypeInfo.h.

◆ getInt8()

template<typename ALLOC >
const IBasicTypeInfo< ALLOC > & zserio::BuiltinTypeInfo< ALLOC >::getInt8
static

Gets the type information of int8 schema type.

Returns
Reference to the type information of int8 schema type.

Definition at line 1017 of file TypeInfo.h.

◆ getString()

template<typename ALLOC >
const IBasicTypeInfo< ALLOC > & zserio::BuiltinTypeInfo< ALLOC >::getString
static

Gets the type information of string schema type.

Returns
Reference to the type information of string schema type.

Definition at line 1162 of file TypeInfo.h.

◆ getUInt16()

template<typename ALLOC >
const IBasicTypeInfo< ALLOC > & zserio::BuiltinTypeInfo< ALLOC >::getUInt16
static

Gets the type information of uint16 schema type.

Returns
Reference to the type information of uint16 schema type.

Definition at line 1047 of file TypeInfo.h.

◆ getUInt32()

template<typename ALLOC >
const IBasicTypeInfo< ALLOC > & zserio::BuiltinTypeInfo< ALLOC >::getUInt32
static

Gets the type information of uint32 schema type.

Returns
Reference to the type information of uint32 schema type.

Definition at line 1053 of file TypeInfo.h.

◆ getUInt64()

template<typename ALLOC >
const IBasicTypeInfo< ALLOC > & zserio::BuiltinTypeInfo< ALLOC >::getUInt64
static

Gets the type information of uint64 schema type.

Returns
Reference to the type information of uint64 schema type.

Definition at line 1059 of file TypeInfo.h.

◆ getUInt8()

template<typename ALLOC >
const IBasicTypeInfo< ALLOC > & zserio::BuiltinTypeInfo< ALLOC >::getUInt8
static

Gets the type information of uint8 schema type.

Returns
Reference to the type information of uint8 schema type.

Definition at line 1041 of file TypeInfo.h.

◆ getVarInt()

template<typename ALLOC >
const IBasicTypeInfo< ALLOC > & zserio::BuiltinTypeInfo< ALLOC >::getVarInt
static

Gets the type information of varint schema type.

Returns
Reference to the type information of varint schema type.

Definition at line 1089 of file TypeInfo.h.

◆ getVarInt16()

template<typename ALLOC >
const IBasicTypeInfo< ALLOC > & zserio::BuiltinTypeInfo< ALLOC >::getVarInt16
static

Gets the type information of varint16 schema type.

Returns
Reference to the type information of varint16 schema type.

Definition at line 1065 of file TypeInfo.h.

◆ getVarInt32()

template<typename ALLOC >
const IBasicTypeInfo< ALLOC > & zserio::BuiltinTypeInfo< ALLOC >::getVarInt32
static

Gets the type information of varint32 schema type.

Returns
Reference to the type information of varint32 schema type.

Definition at line 1073 of file TypeInfo.h.

◆ getVarInt64()

template<typename ALLOC >
const IBasicTypeInfo< ALLOC > & zserio::BuiltinTypeInfo< ALLOC >::getVarInt64
static

Gets the type information of varint64 schema type.

Returns
Reference to the type information of varint64 schema type.

Definition at line 1081 of file TypeInfo.h.

◆ getVarSize()

template<typename ALLOC >
const IBasicTypeInfo< ALLOC > & zserio::BuiltinTypeInfo< ALLOC >::getVarSize
static

Gets the type information of varsize schema type.

Returns
Reference to the type information of varsize schema type.

Definition at line 1129 of file TypeInfo.h.

◆ getVarUInt()

template<typename ALLOC >
const IBasicTypeInfo< ALLOC > & zserio::BuiltinTypeInfo< ALLOC >::getVarUInt
static

Gets the type information of varuint schema type.

Returns
Reference to the type information of varuint schema type.

Definition at line 1121 of file TypeInfo.h.

◆ getVarUInt16()

template<typename ALLOC >
const IBasicTypeInfo< ALLOC > & zserio::BuiltinTypeInfo< ALLOC >::getVarUInt16
static

Gets the type information of varuint16 schema type.

Returns
Reference to the type information of varuint16 schema type.

Definition at line 1097 of file TypeInfo.h.

◆ getVarUInt32()

template<typename ALLOC >
const IBasicTypeInfo< ALLOC > & zserio::BuiltinTypeInfo< ALLOC >::getVarUInt32
static

Gets the type information of varuint32 schema type.

Returns
Reference to the type information of varuint32 schema type.

Definition at line 1105 of file TypeInfo.h.

◆ getVarUInt64()

template<typename ALLOC >
const IBasicTypeInfo< ALLOC > & zserio::BuiltinTypeInfo< ALLOC >::getVarUInt64
static

Gets the type information of varuint64 schema type.

Returns
Reference to the type information of varuint64 schema type.

Definition at line 1113 of file TypeInfo.h.


The documentation for this class was generated from the following file: