Zserio C++ runtime library  1.0.0
Built for Zserio 2.13.0
zserio::BasicDefaultWalkObserver< ALLOC > Class Template Reference

#include <Walker.h>

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

Public Member Functions

void beginRoot (const IBasicReflectableConstPtr< ALLOC > &) override
 
void endRoot (const IBasicReflectableConstPtr< ALLOC > &) override
 
void beginArray (const IBasicReflectableConstPtr< ALLOC > &, const BasicFieldInfo< ALLOC > &) override
 
void endArray (const IBasicReflectableConstPtr< ALLOC > &, const BasicFieldInfo< ALLOC > &) override
 
void beginCompound (const IBasicReflectableConstPtr< ALLOC > &, const BasicFieldInfo< ALLOC > &, size_t) override
 
void endCompound (const IBasicReflectableConstPtr< ALLOC > &, const BasicFieldInfo< ALLOC > &, size_t) override
 
void visitValue (const IBasicReflectableConstPtr< ALLOC > &, const BasicFieldInfo< ALLOC > &, size_t) override
 
 BasicDefaultWalkObserver ()=default
 
 ~BasicDefaultWalkObserver () override=default
 
 BasicDefaultWalkObserver (const BasicDefaultWalkObserver &other)=delete
 
BasicDefaultWalkObserveroperator= (const BasicDefaultWalkObserver &other)=delete
 
 BasicDefaultWalkObserver (BasicDefaultWalkObserver &&other)=delete
 
BasicDefaultWalkObserveroperator= (BasicDefaultWalkObserver &&other)=delete
 
- Public Member Functions inherited from zserio::IBasicWalkObserver< ALLOC >
virtual ~IBasicWalkObserver ()=default
 

Detailed Description

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

Default walk observer which just does nothing.

Definition at line 87 of file Walker.h.

Constructor & Destructor Documentation

template<typename ALLOC = std::allocator<uint8_t>>
zserio::BasicDefaultWalkObserver< ALLOC >::BasicDefaultWalkObserver ( )
default

Method generated by default.

template<typename ALLOC = std::allocator<uint8_t>>
zserio::BasicDefaultWalkObserver< ALLOC >::~BasicDefaultWalkObserver ( )
overridedefault

Method generated by default.

template<typename ALLOC = std::allocator<uint8_t>>
zserio::BasicDefaultWalkObserver< ALLOC >::BasicDefaultWalkObserver ( const BasicDefaultWalkObserver< ALLOC > &  other)
delete

Copying and moving is disallowed!

template<typename ALLOC = std::allocator<uint8_t>>
zserio::BasicDefaultWalkObserver< ALLOC >::BasicDefaultWalkObserver ( BasicDefaultWalkObserver< ALLOC > &&  other)
delete

Copying and moving is disallowed!

Member Function Documentation

template<typename ALLOC = std::allocator<uint8_t>>
void zserio::BasicDefaultWalkObserver< ALLOC >::beginArray ( const IBasicReflectableConstPtr< ALLOC > &  array,
const BasicFieldInfo< ALLOC > &  fieldInfo 
)
inlineoverridevirtual

Called at the beginning of an array.

Note that for unset arrays (i.e. non-present optionals) the visitValue method with nullptr is called instead!

Parameters
arrayReflectable zserio array.
fieldInfoArray field info.

Implements zserio::IBasicWalkObserver< ALLOC >.

Definition at line 116 of file Walker.h.

template<typename ALLOC = std::allocator<uint8_t>>
void zserio::BasicDefaultWalkObserver< ALLOC >::beginCompound ( const IBasicReflectableConstPtr< ALLOC > &  compound,
const BasicFieldInfo< ALLOC > &  fieldInfo,
size_t  elementIndex 
)
inlineoverridevirtual

Called at the beginning of an compound field object.

Note that for unset compounds (i.e. non-present optionals) the visitValue method with nullptr is called instead!

Parameters
compoundReflectable compound zserio object.
fieldInfoCompound field info.
elementIndexElement index in array or WALKER_NOT_ELEMENT if the compound is not in array.

Implements zserio::IBasicWalkObserver< ALLOC >.

Definition at line 121 of file Walker.h.

template<typename ALLOC = std::allocator<uint8_t>>
void zserio::BasicDefaultWalkObserver< ALLOC >::beginRoot ( const IBasicReflectableConstPtr< ALLOC > &  compound)
inlineoverridevirtual

Called for the root compound zserio object which is to be walked-through.

Parameters
compoundReflectable root compound zserio object.

Implements zserio::IBasicWalkObserver< ALLOC >.

Definition at line 113 of file Walker.h.

template<typename ALLOC = std::allocator<uint8_t>>
void zserio::BasicDefaultWalkObserver< ALLOC >::endArray ( const IBasicReflectableConstPtr< ALLOC > &  array,
const BasicFieldInfo< ALLOC > &  fieldInfo 
)
inlineoverridevirtual

Called at the end of an array.

Parameters
arrayReflectable zserio array.
fieldInfoArray field info.

Implements zserio::IBasicWalkObserver< ALLOC >.

Definition at line 118 of file Walker.h.

template<typename ALLOC = std::allocator<uint8_t>>
void zserio::BasicDefaultWalkObserver< ALLOC >::endCompound ( const IBasicReflectableConstPtr< ALLOC > &  compound,
const BasicFieldInfo< ALLOC > &  fieldInfo,
size_t  elementIndex 
)
inlineoverridevirtual

Called at the end of just walked compound object.

Parameters
compoundReflectable compound zserio object.
fieldInfoCompound field info.
elementIndexElement index in array or WALKER_NOT_ELEMENT if the compound is not in array.

Implements zserio::IBasicWalkObserver< ALLOC >.

Definition at line 123 of file Walker.h.

template<typename ALLOC = std::allocator<uint8_t>>
void zserio::BasicDefaultWalkObserver< ALLOC >::endRoot ( const IBasicReflectableConstPtr< ALLOC > &  compound)
inlineoverridevirtual

Called at the end of just walked root compound zserio object.

Parameters
compoundReflectable root compound zserio object.

Implements zserio::IBasicWalkObserver< ALLOC >.

Definition at line 114 of file Walker.h.

template<typename ALLOC = std::allocator<uint8_t>>
BasicDefaultWalkObserver& zserio::BasicDefaultWalkObserver< ALLOC >::operator= ( const BasicDefaultWalkObserver< ALLOC > &  other)
delete

Copying and moving is disallowed!

template<typename ALLOC = std::allocator<uint8_t>>
BasicDefaultWalkObserver& zserio::BasicDefaultWalkObserver< ALLOC >::operator= ( BasicDefaultWalkObserver< ALLOC > &&  other)
delete

Copying and moving is disallowed!

template<typename ALLOC = std::allocator<uint8_t>>
void zserio::BasicDefaultWalkObserver< ALLOC >::visitValue ( const IBasicReflectableConstPtr< ALLOC > &  value,
const BasicFieldInfo< ALLOC > &  fieldInfo,
size_t  elementIndex 
)
inlineoverridevirtual

Called when a simple (or an unset compound or array - i.e. nullptr) value is reached.

Parameters
valueReflectable simple value.
fieldInfoField info.
elementIndexElement index in array or WALKER_NOT_ELEMENT if the value is not in array.

Implements zserio::IBasicWalkObserver< ALLOC >.

Definition at line 126 of file Walker.h.


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