syslog-ng source
numeric-funcs.c File Reference
#include "generic-number.h"
#include <math.h>
Include dependency graph for numeric-funcs.c:
This graph shows which files directly or indirectly include this file:

Classes

struct  AverageState
 

Typedefs

typedef gboolean(* AggregateFunc) (gpointer, gint64)
 

Functions

void format_number (GString *result, LogMessageValueType *type, const GenericNumber *n)
 
void format_nan (GString *result, LogMessageValueType *type)
 
 TEMPLATE_FUNCTION_SIMPLE (tf_num_plus)
 
 TEMPLATE_FUNCTION_SIMPLE (tf_num_minus)
 
 TEMPLATE_FUNCTION_SIMPLE (tf_num_multi)
 
 TEMPLATE_FUNCTION_SIMPLE (tf_num_div)
 
 TEMPLATE_FUNCTION_SIMPLE (tf_num_mod)
 
 TEMPLATE_FUNCTION_SIMPLE (tf_num_round)
 
 TEMPLATE_FUNCTION_SIMPLE (tf_num_ceil)
 
 TEMPLATE_FUNCTION_SIMPLE (tf_num_floor)
 
 TEMPLATE_FUNCTION (TFSimpleFuncState, tf_num_sum, tf_num_prepare, NULL, tf_num_sum_call, tf_simple_func_free_state, NULL)
 
 TEMPLATE_FUNCTION (TFSimpleFuncState, tf_num_min, tf_num_prepare, NULL, tf_num_min_call, tf_simple_func_free_state, NULL)
 
 TEMPLATE_FUNCTION (TFSimpleFuncState, tf_num_max, tf_num_prepare, NULL, tf_num_max_call, tf_simple_func_free_state, NULL)
 
 TEMPLATE_FUNCTION (TFSimpleFuncState, tf_num_average, tf_num_prepare, NULL, tf_num_average_call, tf_simple_func_free_state, NULL)
 

Typedef Documentation

◆ AggregateFunc

typedef gboolean(* AggregateFunc) (gpointer, gint64)

Function Documentation

◆ format_nan()

void format_nan ( GString *  result,
LogMessageValueType type 
)

◆ format_number()

void format_number ( GString *  result,
LogMessageValueType type,
const GenericNumber n 
)

◆ TEMPLATE_FUNCTION() [1/4]

TEMPLATE_FUNCTION ( TFSimpleFuncState  ,
tf_num_average  ,
tf_num_prepare  ,
NULL  ,
tf_num_average_call  ,
tf_simple_func_free_state  ,
NULL   
)

◆ TEMPLATE_FUNCTION() [2/4]

TEMPLATE_FUNCTION ( TFSimpleFuncState  ,
tf_num_max  ,
tf_num_prepare  ,
NULL  ,
tf_num_max_call  ,
tf_simple_func_free_state  ,
NULL   
)

◆ TEMPLATE_FUNCTION() [3/4]

TEMPLATE_FUNCTION ( TFSimpleFuncState  ,
tf_num_min  ,
tf_num_prepare  ,
NULL  ,
tf_num_min_call  ,
tf_simple_func_free_state  ,
NULL   
)

◆ TEMPLATE_FUNCTION() [4/4]

TEMPLATE_FUNCTION ( TFSimpleFuncState  ,
tf_num_sum  ,
tf_num_prepare  ,
NULL  ,
tf_num_sum_call  ,
tf_simple_func_free_state  ,
NULL   
)

◆ TEMPLATE_FUNCTION_SIMPLE() [1/8]

TEMPLATE_FUNCTION_SIMPLE ( tf_num_ceil  )

◆ TEMPLATE_FUNCTION_SIMPLE() [2/8]

TEMPLATE_FUNCTION_SIMPLE ( tf_num_div  )

◆ TEMPLATE_FUNCTION_SIMPLE() [3/8]

TEMPLATE_FUNCTION_SIMPLE ( tf_num_floor  )

◆ TEMPLATE_FUNCTION_SIMPLE() [4/8]

TEMPLATE_FUNCTION_SIMPLE ( tf_num_minus  )

◆ TEMPLATE_FUNCTION_SIMPLE() [5/8]

TEMPLATE_FUNCTION_SIMPLE ( tf_num_mod  )

◆ TEMPLATE_FUNCTION_SIMPLE() [6/8]

TEMPLATE_FUNCTION_SIMPLE ( tf_num_multi  )

◆ TEMPLATE_FUNCTION_SIMPLE() [7/8]

TEMPLATE_FUNCTION_SIMPLE ( tf_num_plus  )

◆ TEMPLATE_FUNCTION_SIMPLE() [8/8]

TEMPLATE_FUNCTION_SIMPLE ( tf_num_round  )