Zserio C++ runtime library
1.0.0
Built for Zserio 2.13.0
|
#include <Walker.h>
Public Types | |
using | WalkFilterRef = std::reference_wrapper< IBasicWalkFilter< ALLOC >> |
using | WalkFilters = vector< WalkFilterRef, ALLOC > |
Public Member Functions | |
BasicAndWalkFilter (const WalkFilters &walkFilters) | |
~BasicAndWalkFilter () override=default | |
bool | beforeArray (const IBasicReflectableConstPtr< ALLOC > &array, const BasicFieldInfo< ALLOC > &fieldInfo) override |
bool | afterArray (const IBasicReflectableConstPtr< ALLOC > &array, const BasicFieldInfo< ALLOC > &fieldInfo) override |
bool | beforeCompound (const IBasicReflectableConstPtr< ALLOC > &compound, const BasicFieldInfo< ALLOC > &fieldInfo, size_t elementIndex) override |
bool | afterCompound (const IBasicReflectableConstPtr< ALLOC > &compound, const BasicFieldInfo< ALLOC > &fieldInfo, size_t elementIndex) override |
bool | beforeValue (const IBasicReflectableConstPtr< ALLOC > &value, const BasicFieldInfo< ALLOC > &fieldInfo, size_t elementIndex) override |
bool | afterValue (const IBasicReflectableConstPtr< ALLOC > &value, const BasicFieldInfo< ALLOC > &fieldInfo, size_t elementIndex) override |
BasicAndWalkFilter (const BasicAndWalkFilter &other)=delete | |
BasicAndWalkFilter & | operator= (const BasicAndWalkFilter &other)=delete |
BasicAndWalkFilter (BasicAndWalkFilter &&other)=delete | |
BasicAndWalkFilter & | operator= (BasicAndWalkFilter &&other)=delete |
![]() | |
virtual | ~IBasicWalkFilter ()=default |
Walk filter which implements composition of particular filters.
The filters are called sequentially and logical and is applied on theirs results. Note that all filters are always called.
using zserio::BasicAndWalkFilter< ALLOC >::WalkFilterRef = std::reference_wrapper<IBasicWalkFilter<ALLOC>> |
using zserio::BasicAndWalkFilter< ALLOC >::WalkFilters = vector<WalkFilterRef, ALLOC> |
|
explicit |
|
overridedefault |
Method generated by default.
|
delete |
Copying and moving is disallowed!
|
delete |
Copying and moving is disallowed!
|
overridevirtual |
Called after an array.
array | Reflectable zserio array. |
fieldInfo | Array field info. |
Implements zserio::IBasicWalkFilter< ALLOC >.
|
overridevirtual |
Called after a compound object.
compound | Reflectable compound zserio object. |
fieldInfo | Compound field info. |
elementIndex | Element index in array or WALKER_NOT_ELEMENT if the compound is not in array. |
Implements zserio::IBasicWalkFilter< ALLOC >.
|
overridevirtual |
Called after a simple (or an unset compound or array - i.e. nullptr) value.
value | Reflectable simple value. |
fieldInfo | Field info. |
elementIndex | Element index in array or None if the value is not in array. |
Implements zserio::IBasicWalkFilter< ALLOC >.
|
overridevirtual |
Called before an array.
Note that for unset arrays (i.e. non-present optionals) the beforeValue method with nullptr is called instead!
array | Reflectable zserio array. |
fieldInfo | Array field info. |
Implements zserio::IBasicWalkFilter< ALLOC >.
|
overridevirtual |
Called before a compound object.
Note that for unset compounds (i.e. non-present optionals) the beforeValue method with nullptr is called instead!
compound | Reflectable compound zserio object. |
fieldInfo | Compound field info. |
elementIndex | Element index in array or WALKER_NOT_ELEMENT if the compound is not in array. |
Implements zserio::IBasicWalkFilter< ALLOC >.
|
overridevirtual |
Called before a simple (or an unset compound or array - i.e. nullptr) value.
value | Reflectable simple value. |
fieldInfo | Field info. |
elementIndex | Element index in array or WALKER_NOT_ELEMENT if the value is not in array. |
Implements zserio::IBasicWalkFilter< ALLOC >.
|
delete |
Copying and moving is disallowed!
|
delete |
Copying and moving is disallowed!