#ifndef PRED_H #define PRED_H #ifdef __cplusplus extern "C" { #endif /** A Generator is called with no arguments. */ typedef const void *(*yacl_generator)(); /** A Predicate is a function whose result represents the truth or falsehood of some condition. A Predicate might, for example, be a function that takes an argument of type int and returns true if the argument is positive. */ typedef int (*yacl_predicate)(const void *); /** A Binary Predicate is a function whose result represents the truth or falsehood of some condition. A Binary Predicate might, for example, be a function that takes two arguments and tests whether they are equal. */ typedef int (*yacl_binary_pred)(const void *, const void *); #ifdef __cplusplus } #endif #endif /* PRED_H */