recutils
|
#include <config.h>
#include <stdlib.h>
#include <string.h>
#include <float.h>
#include <math.h>
#include <minmax.h>
#include <rec-utils.h>
#include <rec.h>
Data Structures | |
struct | rec_aggregate_reg_elem_s |
struct | rec_aggregate_reg_s |
struct | rec_aggregate_descriptor_s |
Macros | |
#define | MAX_FUNCTIONS 40 |
#define | NUM_STD_AGGREGATES 5 |
#define | REC_AGGREGATE_ACCUM_FUNC(NAME, OP, INIT_VAL) |
Functions | |
rec_aggregate_reg_t | rec_aggregate_reg_new (void) |
void | rec_aggregate_reg_destroy (rec_aggregate_reg_t func_reg) |
bool | rec_aggregate_reg_add (rec_aggregate_reg_t func_reg, const char *name, rec_aggregate_t function) |
rec_aggregate_t | rec_aggregate_reg_get (rec_aggregate_reg_t func_reg, const char *name) |
void | rec_aggregate_reg_add_standard (rec_aggregate_reg_t func_reg) |
bool | rec_aggregate_std_p (const char *name) |
REC_AGGREGATE_ACCUM_FUNC (sum, op_sum, 0) | |
REC_AGGREGATE_ACCUM_FUNC (min, MIN, DBL_MAX) | |
REC_AGGREGATE_ACCUM_FUNC (max, MAX, DBL_MIN) | |
#define MAX_FUNCTIONS 40 |
#define NUM_STD_AGGREGATES 5 |
#define REC_AGGREGATE_ACCUM_FUNC | ( | NAME, | |
OP, | |||
INIT_VAL | |||
) |
REC_AGGREGATE_ACCUM_FUNC | ( | max | , |
MAX | , | ||
DBL_MIN | |||
) |
REC_AGGREGATE_ACCUM_FUNC | ( | min | , |
MIN | , | ||
DBL_MAX | |||
) |
REC_AGGREGATE_ACCUM_FUNC | ( | sum | , |
op_sum | , | ||
0 | |||
) |
bool rec_aggregate_reg_add | ( | rec_aggregate_reg_t | func_reg, |
const char * | name, | ||
rec_aggregate_t | function | ||
) |
void rec_aggregate_reg_add_standard | ( | rec_aggregate_reg_t | func_reg | ) |
void rec_aggregate_reg_destroy | ( | rec_aggregate_reg_t | func_reg | ) |
rec_aggregate_t rec_aggregate_reg_get | ( | rec_aggregate_reg_t | func_reg, |
const char * | name | ||
) |
rec_aggregate_reg_t rec_aggregate_reg_new | ( | void | ) |
bool rec_aggregate_std_p | ( | const char * | name | ) |