Akumuli
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions | Public Attributes | List of all members
Akumuli::QP::FilterByIdNode< Predicate > Struct Template Reference

#include <filterbyid.h>

Inheritance diagram for Akumuli::QP::FilterByIdNode< Predicate >:
Akumuli::QP::Node

Public Member Functions

 FilterByIdNode (Predicate pred, std::shared_ptr< Node > next)
 
virtual void complete ()
 Complete adding values.
 
virtual bool put (const aku_Sample &sample)
 
void set_error (aku_Status status)
 
virtual int get_requirements () const
 

Public Attributes

Predicate op_
 Id matching predicate.
 
std::shared_ptr< Nodenext_
 

Additional Inherited Members

- Public Types inherited from Akumuli::QP::Node
enum  QueryFlags { EMPTY = 0, GROUP_BY_REQUIRED = 1, TERMINAL = 2 }
 

Detailed Description

template<class Predicate>
struct Akumuli::QP::FilterByIdNode< Predicate >

Filter ids using predicate. Predicate is an unary functor that accepts parameter of type aku_ParamId - fun(aku_ParamId) -> bool.

Member Function Documentation

template<class Predicate >
virtual int Akumuli::QP::FilterByIdNode< Predicate >::get_requirements ( ) const
inlinevirtual

This method returns set of flags that describes its functioning.

Implements Akumuli::QP::Node.

template<class Predicate >
virtual bool Akumuli::QP::FilterByIdNode< Predicate >::put ( const aku_Sample &  sample)
inlinevirtual

Process value, return false to interrupt process. Empty sample can be sent to flush all updates.

Implements Akumuli::QP::Node.


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