Zserio C++ runtime library  1.1.0
Built for Zserio 2.15.0
zserio::IBasicWalkFilter< ALLOC > Class Template Referenceabstract

#include <IWalkFilter.h>

Public Member Functions

virtual ~IBasicWalkFilter ()=default
 
virtual bool beforeArray (const IBasicReflectableConstPtr< ALLOC > &array, const BasicFieldInfo< ALLOC > &fieldInfo)=0
 
virtual bool afterArray (const IBasicReflectableConstPtr< ALLOC > &array, const BasicFieldInfo< ALLOC > &fieldInfo)=0
 
virtual bool beforeCompound (const IBasicReflectableConstPtr< ALLOC > &compound, const BasicFieldInfo< ALLOC > &fieldInfo, size_t elementIndex)=0
 
virtual bool afterCompound (const IBasicReflectableConstPtr< ALLOC > &compound, const BasicFieldInfo< ALLOC > &fieldInfo, size_t elementIndex)=0
 
virtual bool beforeValue (const IBasicReflectableConstPtr< ALLOC > &value, const BasicFieldInfo< ALLOC > &fieldInfo, size_t elementIndex)=0
 
virtual bool afterValue (const IBasicReflectableConstPtr< ALLOC > &value, const BasicFieldInfo< ALLOC > &fieldInfo, size_t elementIndex)=0
 

Detailed Description

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

Interface for filters which can influence the walking.

Definition at line 15 of file IWalkFilter.h.

Constructor & Destructor Documentation

◆ ~IBasicWalkFilter()

template<typename ALLOC = std::allocator<uint8_t>>
virtual zserio::IBasicWalkFilter< ALLOC >::~IBasicWalkFilter ( )
virtualdefault

Destructor.

Member Function Documentation

◆ afterArray()

template<typename ALLOC = std::allocator<uint8_t>>
virtual bool zserio::IBasicWalkFilter< ALLOC >::afterArray ( const IBasicReflectableConstPtr< ALLOC > &  array,
const BasicFieldInfo< ALLOC > &  fieldInfo 
)
pure virtual

Called after an array.

Parameters
arrayReflectable zserio array.
fieldInfoArray field info.
Returns
True when the walking should continue to a next sibling, false to return to the parent.

Implemented in zserio::BasicDefaultWalkFilter< std::allocator< uint8_t > >.

◆ afterCompound()

template<typename ALLOC = std::allocator<uint8_t>>
virtual bool zserio::IBasicWalkFilter< ALLOC >::afterCompound ( const IBasicReflectableConstPtr< ALLOC > &  compound,
const BasicFieldInfo< ALLOC > &  fieldInfo,
size_t  elementIndex 
)
pure virtual

Called after a 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.
Returns
True when the walking should continue to a next sibling, false to return to the parent.

Implemented in zserio::BasicDefaultWalkFilter< std::allocator< uint8_t > >.

◆ afterValue()

template<typename ALLOC = std::allocator<uint8_t>>
virtual bool zserio::IBasicWalkFilter< ALLOC >::afterValue ( const IBasicReflectableConstPtr< ALLOC > &  value,
const BasicFieldInfo< ALLOC > &  fieldInfo,
size_t  elementIndex 
)
pure virtual

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

Parameters
valueReflectable simple value.
fieldInfoField info.
elementIndexElement index in array or None if the value is not in array.
Returns
True when the walking should continue to a next sibling, false to return to the parent.

Implemented in zserio::BasicDefaultWalkFilter< std::allocator< uint8_t > >.

◆ beforeArray()

template<typename ALLOC = std::allocator<uint8_t>>
virtual bool zserio::IBasicWalkFilter< ALLOC >::beforeArray ( const IBasicReflectableConstPtr< ALLOC > &  array,
const BasicFieldInfo< ALLOC > &  fieldInfo 
)
pure virtual

Called before an array.

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

Parameters
arrayReflectable zserio array.
fieldInfoArray field info.
Returns
True when the walking should continue to the array.

Implemented in zserio::BasicDefaultWalkFilter< std::allocator< uint8_t > >.

◆ beforeCompound()

template<typename ALLOC = std::allocator<uint8_t>>
virtual bool zserio::IBasicWalkFilter< ALLOC >::beforeCompound ( const IBasicReflectableConstPtr< ALLOC > &  compound,
const BasicFieldInfo< ALLOC > &  fieldInfo,
size_t  elementIndex 
)
pure virtual

Called before a compound object.

Note that for unset compounds (i.e. non-present optionals) the beforeValue 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.
Returns
True when the walking should continue into the compound object, false otherwise.

Implemented in zserio::BasicDefaultWalkFilter< std::allocator< uint8_t > >.

◆ beforeValue()

template<typename ALLOC = std::allocator<uint8_t>>
virtual bool zserio::IBasicWalkFilter< ALLOC >::beforeValue ( const IBasicReflectableConstPtr< ALLOC > &  value,
const BasicFieldInfo< ALLOC > &  fieldInfo,
size_t  elementIndex 
)
pure virtual

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

Parameters
valueReflectable simple value.
fieldInfoField info.
elementIndexElement index in array or WALKER_NOT_ELEMENT if the value is not in array.
Returns
True when the walking should continue to the simple value, false otherwise.

Implemented in zserio::BasicDefaultWalkFilter< std::allocator< uint8_t > >.


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