Class astutedds::dcps::CompiledFilter
ClassList > astutedds > dcps > CompiledFilter
Compiled filter expression for efficient evaluation.
#include <writer_filter.hpp>
Public Functions
| Type | Name |
|---|---|
| CompiledFilter () = default |
|
| CompiledFilter (std::unique_ptr< FilterNode > root) |
|
| CompiledFilter (const CompiledFilter & other) |
|
| CompiledFilter (CompiledFilter &&) = default |
|
| bool | evaluate (const std::function< FilterValue(const std::string &)> & field_accessor) const Evaluate filter against data. |
| std::vector< std::string > | get_field_names () const Get referenced field names. |
| bool | is_valid () const Check if filter is valid. |
| CompiledFilter & | operator= (const CompiledFilter & other) |
| CompiledFilter & | operator= (CompiledFilter &&) = default |
Public Functions Documentation
function CompiledFilter [1/4]
astutedds::dcps::CompiledFilter::CompiledFilter () = default
function CompiledFilter [2/4]
explicit astutedds::dcps::CompiledFilter::CompiledFilter (
std::unique_ptr< FilterNode > root
)
function CompiledFilter [3/4]
astutedds::dcps::CompiledFilter::CompiledFilter (
const CompiledFilter & other
)
function CompiledFilter [4/4]
astutedds::dcps::CompiledFilter::CompiledFilter (
CompiledFilter &&
) = default
function evaluate
Evaluate filter against data.
bool astutedds::dcps::CompiledFilter::evaluate (
const std::function< FilterValue (const std::string &)> & field_accessor
) const
Parameters:
field_accessorFunction to get field values by name
Returns:
true if data passes filter
function get_field_names
Get referenced field names.
std::vector< std::string > astutedds::dcps::CompiledFilter::get_field_names () const
function is_valid
Check if filter is valid.
inline bool astutedds::dcps::CompiledFilter::is_valid () const
function operator=
CompiledFilter & astutedds::dcps::CompiledFilter::operator= (
const CompiledFilter & other
)
function operator=
CompiledFilter & astutedds::dcps::CompiledFilter::operator= (
CompiledFilter &&
) = default
The documentation for this class was generated from the following file include/astutedds/dcps/writer_filter.hpp