Zserio C++ runtime library
1.0.0
Built for Zserio 2.13.0
|
#include <Walker.h>
Public Member Functions | |
BasicRegexWalkFilter (const char *pathRegex, const ALLOC &allocator=ALLOC()) | |
~BasicRegexWalkFilter () 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 |
BasicRegexWalkFilter (const BasicRegexWalkFilter &other)=delete | |
BasicRegexWalkFilter & | operator= (const BasicRegexWalkFilter &other)=delete |
BasicRegexWalkFilter (BasicRegexWalkFilter &&other)=delete | |
BasicRegexWalkFilter & | operator= (BasicRegexWalkFilter &&other)=delete |
![]() | |
virtual | ~IBasicWalkFilter ()=default |
Walk filter which allows to walk only paths matching the given regex.
The path is constructed from field names within the root object, thus the root object itself is not part of the path.
Array elements have the index appended to the path so that e.g. "compound.arrayField[0]" will match only the first element in the array "arrayField".
|
explicit |
|
overridedefault |
Method generated by default.
|
delete |
Copying is disallowed!
|
delete |
Copying 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 is disallowed!
|
delete |
Copying is disallowed!