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

#include <TypeInfo.h>

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

Public Member Functions

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

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 > & getFloat16 ()
 
static const IBasicTypeInfo< ALLOC > & getFloat32 ()
 
static const IBasicTypeInfo< ALLOC > & getFloat64 ()
 
static const IBasicTypeInfo< ALLOC > & getFixedSignedBitField (uint8_t bitSize)
 
static const IBasicTypeInfo< ALLOC > & getFixedUnsignedBitField (uint8_t bitSize)
 
- Static Public Member Functions inherited from zserio::BuiltinTypeInfo< ALLOC >
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

 FixedSizeBuiltinTypeInfo (StringView schemaName, SchemaType schemaType, CppType cppType, uint8_t bitSize)
 
- Protected Member Functions inherited from zserio::BuiltinTypeInfo< ALLOC >
 BuiltinTypeInfo (StringView schemaName, SchemaType schemaType, CppType cppType)
 

Detailed Description

template<typename ALLOC>
class zserio::FixedSizeBuiltinTypeInfo< ALLOC >

Type information abstract base class for fixed size builtin types.

Definition at line 315 of file TypeInfo.h.

Constructor & Destructor Documentation

◆ FixedSizeBuiltinTypeInfo()

template<typename ALLOC >
zserio::FixedSizeBuiltinTypeInfo< ALLOC >::FixedSizeBuiltinTypeInfo ( StringView  schemaName,
SchemaType  schemaType,
CppType  cppType,
uint8_t  bitSize 
)
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.
bitSizeThe bit size of the fixed size integral schema type.

Definition at line 1260 of file TypeInfo.h.

Member Function Documentation

◆ getBitSize()

template<typename ALLOC >
uint8_t zserio::FixedSizeBuiltinTypeInfo< ALLOC >::getBitSize
overridevirtual

Gets the bit size of the fixed size integral schema type.

Returns
The bit size of zserio type.
Exceptions
CppRuntimeExceptionIf the zserio type is not fixed size integral (e.g. varint).

Reimplemented from zserio::TypeInfoBase< ALLOC >.

Definition at line 1267 of file TypeInfo.h.

◆ getBool()

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

Gets the type information of bool schema type.

Returns
Reference to the type information of bool schema type.

Definition at line 1273 of file TypeInfo.h.

◆ getFixedSignedBitField()

template<typename ALLOC >
const IBasicTypeInfo< ALLOC > & zserio::FixedSizeBuiltinTypeInfo< 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 1369 of file TypeInfo.h.

◆ getFixedUnsignedBitField()

template<typename ALLOC >
const IBasicTypeInfo< ALLOC > & zserio::FixedSizeBuiltinTypeInfo< 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 1447 of file TypeInfo.h.

◆ getFloat16()

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

Gets the type information of float16 schema type.

Returns
Reference to the type information of float16 schema type.

Definition at line 1345 of file TypeInfo.h.

◆ getFloat32()

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

Gets the type information of float32 schema type.

Returns
Reference to the type information of float32 schema type.

Definition at line 1353 of file TypeInfo.h.

◆ getFloat64()

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

Gets the type information of float64 schema type.

Returns
Reference to the type information of float64 schema type.

Definition at line 1361 of file TypeInfo.h.

◆ getInt16()

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

Gets the type information of int16 schema type.

Returns
Reference to the type information of int16 schema type.

Definition at line 1289 of file TypeInfo.h.

◆ getInt32()

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

Gets the type information of int32 schema type.

Returns
Reference to the type information of int32 schema type.

Definition at line 1297 of file TypeInfo.h.

◆ getInt64()

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

Gets the type information of int64 schema type.

Returns
Reference to the type information of int64 schema type.

Definition at line 1305 of file TypeInfo.h.

◆ getInt8()

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

Gets the type information of int8 schema type.

Returns
Reference to the type information of int8 schema type.

Definition at line 1281 of file TypeInfo.h.

◆ getUInt16()

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

Gets the type information of uint16 schema type.

Returns
Reference to the type information of uint16 schema type.

Definition at line 1321 of file TypeInfo.h.

◆ getUInt32()

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

Gets the type information of uint32 schema type.

Returns
Reference to the type information of uint32 schema type.

Definition at line 1329 of file TypeInfo.h.

◆ getUInt64()

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

Gets the type information of uint64 schema type.

Returns
Reference to the type information of uint64 schema type.

Definition at line 1337 of file TypeInfo.h.

◆ getUInt8()

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

Gets the type information of uint8 schema type.

Returns
Reference to the type information of uint8 schema type.

Definition at line 1313 of file TypeInfo.h.


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