DocWire SDK
DocWire SDK: Award-winning modern data processing in C++20. SourceForge Community Choice & Microsoft support. AI-driven processing. Supports nearly 100 data formats, including email boxes and OCR. Boost efficiency in text extraction, web data extraction, data mining, document analysis. Offline processing possible for security and confidentiality
docwire::chaining::function_to_pushable_binding< F, C > Struct Template Reference

Binds a function to a pushable, enabling the creation of a function call chain. More...

#include <chaining.h>

Public Types

using invocation_args_t = tuple_utils::remove_last_t< invocation_traits::args_t< F > >
 The type of the arguments of this functor.
 

Public Member Functions

template<typename... Args>
auto operator() (Args &&... args)
 Calls the bound function with specified arguments and the pushable push_back method as a callback. More...
 

Public Attributes

ref_or_owned< F > function
 The bound function.
 
ref_or_owned< C > container
 The bound pushable.
 

Detailed Description

template<invocation_concepts::invocable F, invocation_concepts::pushable C>
struct docwire::chaining::function_to_pushable_binding< F, C >

Binds a function to a pushable, enabling the creation of a function call chain.

This class template takes two type parameters: F (the function type) and C (the pushable type). It provides an operator() that allows the bound function to be called with specified arguments and the pushable push_back method as a callback.

Template Parameters
FThe type of the function to be bound.
CThe type of the pushable to be bound.
See also
docwire::invocation_concepts::invocable
docwire::invocation_concepts::pushable

Definition at line 207 of file chaining.h.

Member Function Documentation

◆ operator()()

template<invocation_concepts::invocable F, invocation_concepts::pushable C>
template<typename... Args>
auto docwire::chaining::function_to_pushable_binding< F, C >::operator() ( Args &&...  args)
inline

Calls the bound function with specified arguments and the pushable push_back method as a callback.

Template Parameters
ArgsThe types of the arguments.
Parameters
argsThe arguments.
Returns
The result of the function call.

Definition at line 227 of file chaining.h.


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