Zserio C++ runtime library  1.1.0
Built for Zserio 2.15.0
zserio::DynamicUnsignedBitFieldReflectable< ALLOC, uint8_t > Class Template Reference

#include <Reflectable.h>

Inheritance diagram for zserio::DynamicUnsignedBitFieldReflectable< ALLOC, uint8_t >:
Collaboration diagram for zserio::DynamicUnsignedBitFieldReflectable< ALLOC, uint8_t >:

Public Member Functions

 DynamicUnsignedBitFieldReflectable (uint8_t value, uint8_t maxBitSize, uint8_t dynamicBitSize)
 
size_t bitSizeOf (size_t) const override
 
void write (BitStreamWriter &writer) const override
 
- Public Member Functions inherited from zserio::UInt8ReflectableBase< ALLOC >
uint8_t getUInt8 () const override
 
- Public Member Functions inherited from zserio::UnsignedReflectableBase< ALLOC, uint8_t >
uint64_t toUInt () const override
 
- Public Member Functions inherited from zserio::IntegralReflectableBase< ALLOC, T >
 IntegralReflectableBase (const IBasicTypeInfo< ALLOC > &typeInfo, T value)
 
double toDouble () const override
 
string< ALLOC > toString (const ALLOC &allocator) const override
 
- Public Member Functions inherited from zserio::BuiltinReflectableBase< ALLOC, T, typename >
AnyHolder< ALLOC > getAnyValue (const ALLOC &allocator) const override
 
AnyHolder< ALLOC > getAnyValue (const ALLOC &allocator) override
 
- Public Member Functions inherited from zserio::ReflectableBase< ALLOC >
 ReflectableBase (const IBasicTypeInfo< ALLOC > &typeInfo)
 
 ~ReflectableBase () override=0
 
const IBasicTypeInfo< ALLOC > & getTypeInfo () const override
 
bool isArray () const override
 
void initializeChildren () override
 
void initialize (const vector< AnyHolder< ALLOC >, ALLOC > &typeArguments) override
 
size_t initializeOffsets (size_t bitPosition) override
 
size_t initializeOffsets () override
 
size_t bitSizeOf () const override
 
IBasicReflectableConstPtr< ALLOC > getField (StringView name) const override
 
IBasicReflectablePtr< ALLOC > getField (StringView name) override
 
IBasicReflectablePtr< ALLOC > createField (StringView name) override
 
void setField (StringView name, const AnyHolder< ALLOC > &value) override
 
IBasicReflectableConstPtr< ALLOC > getParameter (StringView name) const override
 
IBasicReflectablePtr< ALLOC > getParameter (StringView name) override
 
IBasicReflectableConstPtr< ALLOC > callFunction (StringView name) const override
 
IBasicReflectablePtr< ALLOC > callFunction (StringView name) override
 
StringView getChoice () const override
 
IBasicReflectableConstPtr< ALLOC > find (StringView path) const override
 
IBasicReflectablePtr< ALLOC > find (StringView path) override
 
IBasicReflectableConstPtr< ALLOC > operator[] (StringView path) const override
 
IBasicReflectablePtr< ALLOC > operator[] (StringView path) override
 
size_t size () const override
 
void resize (size_t size) override
 
IBasicReflectableConstPtr< ALLOC > at (size_t index) const override
 
IBasicReflectablePtr< ALLOC > at (size_t index) override
 
IBasicReflectableConstPtr< ALLOC > operator[] (size_t index) const override
 
IBasicReflectablePtr< ALLOC > operator[] (size_t index) override
 
void setAt (const AnyHolder< ALLOC > &value, size_t index) override
 
void append (const AnyHolder< ALLOC > &value) override
 
AnyHolder< ALLOC > getAnyValue () const override
 
AnyHolder< ALLOC > getAnyValue () override
 
bool getBool () const override
 
int8_t getInt8 () const override
 
int16_t getInt16 () const override
 
int32_t getInt32 () const override
 
int64_t getInt64 () const override
 
uint16_t getUInt16 () const override
 
uint32_t getUInt32 () const override
 
uint64_t getUInt64 () const override
 
float getFloat () const override
 
double getDouble () const override
 
Span< const uint8_t > getBytes () const override
 
StringView getStringView () const override
 
const BasicBitBuffer< ALLOC > & getBitBuffer () const override
 
int64_t toInt () const override
 
string< ALLOC > toString () const override
 
const ParsingInfoparsingInfo () const override
 
 ReflectableBase (const ReflectableBase &)=delete
 
ReflectableBaseoperator= (const ReflectableBase &)=delete
 
 ReflectableBase (const ReflectableBase &&)=delete
 
ReflectableBaseoperator= (const ReflectableBase &&)=delete
 
- Public Member Functions inherited from zserio::IBasicReflectable< ALLOC >
virtual ~IBasicReflectable ()=default
 

Static Public Member Functions

static const IBasicTypeInfo< ALLOC > & typeInfo (uint8_t maxBitSize)
 

Additional Inherited Members

- Public Types inherited from zserio::IBasicReflectable< ALLOC >
using Ptr = std::shared_ptr< IBasicReflectable >
 
using ConstPtr = std::shared_ptr< const IBasicReflectable >
 
- Protected Types inherited from zserio::UInt8ReflectableBase< ALLOC >
using Base = UnsignedReflectableBase< ALLOC, uint8_t >
 
- Protected Types inherited from zserio::UnsignedReflectableBase< ALLOC, uint8_t >
using Base = IntegralReflectableBase< ALLOC, uint8_t >
 
- Protected Types inherited from zserio::IntegralReflectableBase< ALLOC, T >
using Base = BuiltinReflectableBase< ALLOC, T >
 
- Protected Member Functions inherited from zserio::BuiltinReflectableBase< ALLOC, T, typename >
 BuiltinReflectableBase (const IBasicTypeInfo< ALLOC > &typeInfo, const T &value)
 
const T & getValue () const
 

Detailed Description

template<typename ALLOC>
class zserio::DynamicUnsignedBitFieldReflectable< ALLOC, uint8_t >

Definition at line 1158 of file Reflectable.h.

Constructor & Destructor Documentation

◆ DynamicUnsignedBitFieldReflectable()

template<typename ALLOC >
zserio::DynamicUnsignedBitFieldReflectable< ALLOC, uint8_t >::DynamicUnsignedBitFieldReflectable ( uint8_t  value,
uint8_t  maxBitSize,
uint8_t  dynamicBitSize 
)
inline

Definition at line 1169 of file Reflectable.h.

Member Function Documentation

◆ bitSizeOf()

template<typename ALLOC >
size_t zserio::DynamicUnsignedBitFieldReflectable< ALLOC, uint8_t >::bitSizeOf ( size_t  bitPosition) const
inlineoverridevirtual

Gets the number of bits needed for serialization of the reflected object.

Note
Works for all reflectable types except arrays!
Parameters
bitPositionThe bit stream position to be used for calculation.
Exceptions
CppRuntimeExceptionWhen the reflected object is an array.
Returns
The size of the serialized reflected object in bits.

Reimplemented from zserio::ReflectableBase< ALLOC >.

Definition at line 1186 of file Reflectable.h.

◆ typeInfo()

template<typename ALLOC >
static const IBasicTypeInfo<ALLOC>& zserio::DynamicUnsignedBitFieldReflectable< ALLOC, uint8_t >::typeInfo ( uint8_t  maxBitSize)
inlinestatic

Definition at line 1164 of file Reflectable.h.

◆ write()

template<typename ALLOC >
void zserio::DynamicUnsignedBitFieldReflectable< ALLOC, uint8_t >::write ( BitStreamWriter writer) const
inlineoverridevirtual

Writes the reflected object to a bit stream using the given bit stream writer.

Note
Works for all reflectable types except arrays!
Parameters
writerBit stream writer to use.
Exceptions
CppRuntimeExceptionWhen the reflected object is an array.

Reimplemented from zserio::ReflectableBase< ALLOC >.

Definition at line 1191 of file Reflectable.h.


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