µEvLoop
A fast and lightweight event loop aimed at embedded platforms in C99.
|
Go to the documentation of this file.
6 #ifndef UEL_FUNCTIONAL_H
7 #define UEL_FUNCTIONAL_H
39 void **destination,
size_t limit);
uel_closure_t uel_func_find(uel_closure_t *closure)
Wraps a closure in a find construct.
Defines pipelines, structures to hold many closures and functions to invoke them sequentially,...
Maps elements of an iterator to an area of memory. Each element is assigned to a void pointer slot.
Definition: functional.h:22
uel_closure_t uel_func_none(uel_closure_t *closure)
Wraps a closure in a none construct.
Defines closures, objects that bind functions to creating and calling contexts.
uel_closure_t uel_func_count(uel_closure_t *closure)
Wraps a closure in a count construct.
uel_closure_t uel_func_foreach(uel_closure_t *closure)
Wraps a closure in a foreach construct.
uel_closure_t uel_func_pipeline(uel_pipeline_t *pipeline)
Wraps a pipeline in a closure.
uel_iterator_t * iterator
The iterator that enumerates the elements to be mapped.
Definition: functional.h:24
Defines iterators, structures and functions suitable for enumerating other data structures.
uel_closure_t uel_func_any(uel_closure_t *closure)
Wraps a closure in a all construct.
uel_closure_t uel_func_conditional(uel_conditional_t *conditional)
Wraps a conditional in a closure.
uel_closure_t uel_func_map(uel_closure_t *closure)
Wraps a closure in a map construct.
uel_closure_t uel_func_all(uel_closure_t *closure)
Wraps a closure in a all construct.
void ** destination
The area of memory to where elements will be mapped.
Definition: functional.h:26
size_t limit
The maximum size of slots to be mapped to.
Definition: functional.h:28
void uel_func_mapper_init(uel_func_mapper_t *mapper, uel_iterator_t *iterator, void **destination, size_t limit)
Initialises a mapper object.
Contains definitions of functional conditionals, structures that act as if-else constructs.