Zserio C++17 runtime library 1.3.0
Built for Zserio 2.20.0
Loading...
Searching...
No Matches
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 IBasicReflectableDataConstPtr< ALLOC > &) override
 
void endRoot (const IBasicReflectableDataConstPtr< ALLOC > &) override
 
void beginArray (const IBasicReflectableDataConstPtr< ALLOC > &, const BasicFieldInfo< ALLOC > &) override
 
void endArray (const IBasicReflectableDataConstPtr< ALLOC > &, const BasicFieldInfo< ALLOC > &) override
 
void beginCompound (const IBasicReflectableDataConstPtr< ALLOC > &, const BasicFieldInfo< ALLOC > &, size_t) override
 
void endCompound (const IBasicReflectableDataConstPtr< ALLOC > &, const BasicFieldInfo< ALLOC > &, size_t) override
 
void visitValue (const IBasicReflectableDataConstPtr< ALLOC > &, const BasicFieldInfo< ALLOC > &, size_t) override
 
 BasicDefaultWalkObserver (const BasicDefaultWalkObserver &other)=delete
 
BasicDefaultWalkObserver & operator= (const BasicDefaultWalkObserver &other)=delete
 
 BasicDefaultWalkObserver (BasicDefaultWalkObserver &&other)=delete
 
BasicDefaultWalkObserver & operator= (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 89 of file Walker.h.

Constructor & Destructor Documentation

◆ BasicDefaultWalkObserver() [1/3]

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

Method generated by default.

◆ ~BasicDefaultWalkObserver()

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

Method generated by default.

◆ BasicDefaultWalkObserver() [2/3]

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

Copying and moving is disallowed!

◆ BasicDefaultWalkObserver() [3/3]

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

Copying and moving is disallowed!

Member Function Documentation

◆ beginArray()

template<typename ALLOC = std::allocator<uint8_t>>
void zserio::BasicDefaultWalkObserver< ALLOC >::beginArray ( const IBasicReflectableDataConstPtr< 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 120 of file Walker.h.

◆ beginCompound()

template<typename ALLOC = std::allocator<uint8_t>>
void zserio::BasicDefaultWalkObserver< ALLOC >::beginCompound ( const IBasicReflectableDataConstPtr< 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 125 of file Walker.h.

◆ beginRoot()

template<typename ALLOC = std::allocator<uint8_t>>
void zserio::BasicDefaultWalkObserver< ALLOC >::beginRoot ( const IBasicReflectableDataConstPtr< 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 115 of file Walker.h.

◆ endArray()

template<typename ALLOC = std::allocator<uint8_t>>
void zserio::BasicDefaultWalkObserver< ALLOC >::endArray ( const IBasicReflectableDataConstPtr< 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 122 of file Walker.h.

◆ endCompound()

template<typename ALLOC = std::allocator<uint8_t>>
void zserio::BasicDefaultWalkObserver< ALLOC >::endCompound ( const IBasicReflectableDataConstPtr< 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 128 of file Walker.h.

◆ endRoot()

template<typename ALLOC = std::allocator<uint8_t>>
void zserio::BasicDefaultWalkObserver< ALLOC >::endRoot ( const IBasicReflectableDataConstPtr< 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 117 of file Walker.h.

◆ operator=() [1/2]

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

Copying and moving is disallowed!

◆ operator=() [2/2]

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

Copying and moving is disallowed!

◆ visitValue()

template<typename ALLOC = std::allocator<uint8_t>>
void zserio::BasicDefaultWalkObserver< ALLOC >::visitValue ( const IBasicReflectableDataConstPtr< 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 131 of file Walker.h.


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