Zserio C++ runtime library  1.2.0
Built for Zserio 2.16.0
zserio::BasicAndWalkFilter< ALLOC > Class Template Reference

#include <Walker.h>

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

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
 
BasicAndWalkFilteroperator= (const BasicAndWalkFilter &other)=delete
 
 BasicAndWalkFilter (BasicAndWalkFilter &&other)=delete
 
BasicAndWalkFilteroperator= (BasicAndWalkFilter &&other)=delete
 
- Public Member Functions inherited from zserio::IBasicWalkFilter< std::allocator< uint8_t > >
virtual ~IBasicWalkFilter ()=default
 
virtual bool beforeArray (const IBasicReflectableConstPtr< std::allocator< uint8_t > > &array, const BasicFieldInfo< std::allocator< uint8_t > > &fieldInfo)=0
 
virtual bool afterArray (const IBasicReflectableConstPtr< std::allocator< uint8_t > > &array, const BasicFieldInfo< std::allocator< uint8_t > > &fieldInfo)=0
 
virtual bool beforeCompound (const IBasicReflectableConstPtr< std::allocator< uint8_t > > &compound, const BasicFieldInfo< std::allocator< uint8_t > > &fieldInfo, size_t elementIndex)=0
 
virtual bool afterCompound (const IBasicReflectableConstPtr< std::allocator< uint8_t > > &compound, const BasicFieldInfo< std::allocator< uint8_t > > &fieldInfo, size_t elementIndex)=0
 
virtual bool beforeValue (const IBasicReflectableConstPtr< std::allocator< uint8_t > > &value, const BasicFieldInfo< std::allocator< uint8_t > > &fieldInfo, size_t elementIndex)=0
 
virtual bool afterValue (const IBasicReflectableConstPtr< std::allocator< uint8_t > > &value, const BasicFieldInfo< std::allocator< uint8_t > > &fieldInfo, size_t elementIndex)=0
 

Detailed Description

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

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.

Definition at line 373 of file Walker.h.

Member Typedef Documentation

◆ WalkFilterRef

template<typename ALLOC = std::allocator<uint8_t>>
using zserio::BasicAndWalkFilter< ALLOC >::WalkFilterRef = std::reference_wrapper<IBasicWalkFilter<ALLOC> >

Definition at line 376 of file Walker.h.

◆ WalkFilters

template<typename ALLOC = std::allocator<uint8_t>>
using zserio::BasicAndWalkFilter< ALLOC >::WalkFilters = vector<WalkFilterRef, ALLOC>

Definition at line 377 of file Walker.h.

Constructor & Destructor Documentation

◆ BasicAndWalkFilter() [1/3]

template<typename ALLOC >
zserio::BasicAndWalkFilter< ALLOC >::BasicAndWalkFilter ( const WalkFilters walkFilters)
explicit

Constructor.

Parameters
walkFiltersList of filters to use in composition.

Definition at line 929 of file Walker.h.

◆ ~BasicAndWalkFilter()

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

Method generated by default.

◆ BasicAndWalkFilter() [2/3]

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

Copying and moving is disallowed!

◆ BasicAndWalkFilter() [3/3]

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

Copying and moving is disallowed!

Member Function Documentation

◆ afterArray()

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

Definition at line 941 of file Walker.h.

◆ afterCompound()

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

Definition at line 955 of file Walker.h.

◆ afterValue()

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

Definition at line 969 of file Walker.h.

◆ beforeArray()

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

Definition at line 934 of file Walker.h.

◆ beforeCompound()

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

Definition at line 948 of file Walker.h.

◆ beforeValue()

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

Definition at line 962 of file Walker.h.

◆ operator=() [1/2]

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

Copying and moving is disallowed!

◆ operator=() [2/2]

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

Copying and moving is disallowed!


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