68 bool push(
void const *
const input,
void *
const output)
70 if (input != NULL &&
update(input)) {
96 virtual bool update(
void const *
const input) = 0;
111 template <
typename IN_T,
typename OUT_T>
150 if (output != NULL) {
151 *(OUT_T *
const) output = out_val;
166 template <
typename T>
173 virtual bool update(
void const *
const input)
override 175 ptr = (T
const *
const) input;
180 if (output != NULL) {
181 *(T *
const) output = *ptr;
195 return (*last())->get_output_val_ptr();
197 virtual bool update(
void const *
const input)
final 199 for (it = begin(); it != last(); ++it) {
200 if (!(*it)->update(it != begin() ? (*prev)->get_output_val_ptr() : input)) {
205 return (*it)->update((*prev)->get_output_val_ptr());
209 if (output != NULL && !isEmpty()) {
virtual void const *const get_output_val_ptr()=0
Read-only access to the internal output memory.
virtual bool update(void const *const input) final
Internally update the filter output based on the given input.
Definition: framework.h:197
A tree of interconnected filters.
Definition: framework.h:226
virtual void const *const get_output_val_ptr() final
Push a new data through the filter.
Definition: framework.h:147
Definition: LinkedList.h:24
virtual void const *const get_output_val_ptr() override
Read-only access to the internal output memory.
Definition: framework.h:172
T const * ptr
Pointer to the latest data that passed through.
Definition: framework.h:184
The linked list class to support the Tree class and FilterChain class.
virtual void const *const get_output_val_ptr() final
Read-only access to the internal output memory.
Definition: framework.h:193
virtual void copy_to_client(void *const output)=0
Copy the output to client memory.
A chain of filters.
Definition: framework.h:190
A pass-through filter does nothing and is useful for derived classes to perform monitoring functional...
Definition: framework.h:167
The typed filter base class.
Definition: framework.h:112
virtual void copy_to_client(void *const output) final
Copy the output to client memory.
Definition: framework.h:207
OUT_T out_val
Internally managed storage of the output value.
Definition: framework.h:157
Definition: LinkedList.h:54
virtual void copy_to_client(void *const output) override
Copy the output to client memory.
Definition: framework.h:178
The tree class to support the filter framework.
The Filter interface without type checking at compile time.
Definition: framework.h:20
virtual bool update(void const *const input) override
Internally update the filter output based on the given input.
Definition: framework.h:173
bool push(void const *const input, void *const output)
Push a new data through the filter.
Definition: framework.h:68
virtual bool update(void const *const input)=0
Internally update the filter output based on the given input.
virtual void copy_to_client(void *const output) final
Copy the output to client memory.
Definition: framework.h:148