Zserio C++17 runtime library  0.5.0
Built for Zserio 2.17.0
zserio::BasicRegexWalkFilter< ALLOC > Class Template Reference

#include <Walker.h>

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

Public Member Functions

 BasicRegexWalkFilter (const char *pathRegex, const ALLOC &allocator=ALLOC())
 
 ~BasicRegexWalkFilter () override=default
 
bool beforeArray (const IBasicReflectableDataConstPtr< ALLOC > &array, const BasicFieldInfo< ALLOC > &fieldInfo) override
 
bool afterArray (const IBasicReflectableDataConstPtr< ALLOC > &array, const BasicFieldInfo< ALLOC > &fieldInfo) override
 
bool beforeCompound (const IBasicReflectableDataConstPtr< ALLOC > &compound, const BasicFieldInfo< ALLOC > &fieldInfo, size_t elementIndex) override
 
bool afterCompound (const IBasicReflectableDataConstPtr< ALLOC > &compound, const BasicFieldInfo< ALLOC > &fieldInfo, size_t elementIndex) override
 
bool beforeValue (const IBasicReflectableDataConstPtr< ALLOC > &value, const BasicFieldInfo< ALLOC > &fieldInfo, size_t elementIndex) override
 
bool afterValue (const IBasicReflectableDataConstPtr< ALLOC > &value, const BasicFieldInfo< ALLOC > &fieldInfo, size_t elementIndex) override
 
 BasicRegexWalkFilter (const BasicRegexWalkFilter &other)=delete
 
BasicRegexWalkFilteroperator= (const BasicRegexWalkFilter &other)=delete
 
 BasicRegexWalkFilter (BasicRegexWalkFilter &&other)=delete
 
BasicRegexWalkFilteroperator= (BasicRegexWalkFilter &&other)=delete
 
- Public Member Functions inherited from zserio::IBasicWalkFilter< std::allocator< uint8_t > >
virtual ~IBasicWalkFilter ()=default
 
virtual bool beforeArray (const IBasicReflectableDataConstPtr< std::allocator< uint8_t > > &array, const BasicFieldInfo< std::allocator< uint8_t > > &fieldInfo)=0
 
virtual bool afterArray (const IBasicReflectableDataConstPtr< std::allocator< uint8_t > > &array, const BasicFieldInfo< std::allocator< uint8_t > > &fieldInfo)=0
 
virtual bool beforeCompound (const IBasicReflectableDataConstPtr< std::allocator< uint8_t > > &compound, const BasicFieldInfo< std::allocator< uint8_t > > &fieldInfo, size_t elementIndex)=0
 
virtual bool afterCompound (const IBasicReflectableDataConstPtr< std::allocator< uint8_t > > &compound, const BasicFieldInfo< std::allocator< uint8_t > > &fieldInfo, size_t elementIndex)=0
 
virtual bool beforeValue (const IBasicReflectableDataConstPtr< std::allocator< uint8_t > > &value, const BasicFieldInfo< std::allocator< uint8_t > > &fieldInfo, size_t elementIndex)=0
 
virtual bool afterValue (const IBasicReflectableDataConstPtr< std::allocator< uint8_t > > &value, const BasicFieldInfo< std::allocator< uint8_t > > &fieldInfo, size_t elementIndex)=0
 

Additional Inherited Members

- Public Types inherited from zserio::IBasicWalkFilter< std::allocator< uint8_t > >
using Path = Vector< BasicString< RebindAlloc< std::allocator< uint8_t >, char > >, RebindAlloc< std::allocator< uint8_t >, BasicString< RebindAlloc< std::allocator< uint8_t >, char > >> >
 

Detailed Description

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

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".

Definition at line 263 of file Walker.h.

Constructor & Destructor Documentation

◆ BasicRegexWalkFilter() [1/3]

template<typename ALLOC >
zserio::BasicRegexWalkFilter< ALLOC >::BasicRegexWalkFilter ( const char *  pathRegex,
const ALLOC &  allocator = ALLOC() 
)
explicit

Constructor.

Parameters
pathRegexPath regex to use for filtering.

Definition at line 768 of file Walker.h.

◆ ~BasicRegexWalkFilter()

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

Method generated by default.

◆ BasicRegexWalkFilter() [2/3]

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

Copying is disallowed!

◆ BasicRegexWalkFilter() [3/3]

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

Copying is disallowed!

Member Function Documentation

◆ afterArray()

template<typename ALLOC >
bool zserio::BasicRegexWalkFilter< ALLOC >::afterArray ( const IBasicReflectableDataConstPtr< ALLOC > &  array,
const BasicFieldInfo< ALLOC > &  fieldInfo 
)
override

Definition at line 801 of file Walker.h.

◆ afterCompound()

template<typename ALLOC >
bool zserio::BasicRegexWalkFilter< ALLOC >::afterCompound ( const IBasicReflectableDataConstPtr< ALLOC > &  compound,
const BasicFieldInfo< ALLOC > &  fieldInfo,
size_t  elementIndex 
)
override

Definition at line 822 of file Walker.h.

◆ afterValue()

template<typename ALLOC >
bool zserio::BasicRegexWalkFilter< ALLOC >::afterValue ( const IBasicReflectableDataConstPtr< ALLOC > &  value,
const BasicFieldInfo< ALLOC > &  fieldInfo,
size_t  elementIndex 
)
override

Definition at line 838 of file Walker.h.

◆ beforeArray()

template<typename ALLOC >
bool zserio::BasicRegexWalkFilter< ALLOC >::beforeArray ( const IBasicReflectableDataConstPtr< ALLOC > &  array,
const BasicFieldInfo< ALLOC > &  fieldInfo 
)
override

Definition at line 774 of file Walker.h.

◆ beforeCompound()

template<typename ALLOC >
bool zserio::BasicRegexWalkFilter< ALLOC >::beforeCompound ( const IBasicReflectableDataConstPtr< ALLOC > &  compound,
const BasicFieldInfo< ALLOC > &  fieldInfo,
size_t  elementIndex 
)
override

Definition at line 809 of file Walker.h.

◆ beforeValue()

template<typename ALLOC >
bool zserio::BasicRegexWalkFilter< ALLOC >::beforeValue ( const IBasicReflectableDataConstPtr< ALLOC > &  value,
const BasicFieldInfo< ALLOC > &  fieldInfo,
size_t  elementIndex 
)
override

Definition at line 830 of file Walker.h.

◆ operator=() [1/2]

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

Copying is disallowed!

◆ operator=() [2/2]

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

Copying is disallowed!


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