htslib.hts_expr

Undocumented in source.

Members

Aliases

hts_expr_sym_func
alias hts_expr_sym_func = int function(void* data, char* str, char** end, hts_expr_val_t* res)

Type for expression symbol lookups; name -> value.

Functions

hts_expr_val_free
void hts_expr_val_free(hts_expr_val_t* f)

Frees a hts_expr_val_t type.

hts_filter_eval
int hts_filter_eval(hts_filter_t* filt, void* data, int function() sym_func, hts_expr_val_t* res)

@param filt The filter, produced by hts_filter_init @param data Arbitrary caller data, passed into sym_func @param sym_func Callback function to lookup variables. @param res Filled out with the result of the filter evaluation @return Returns 0 on success, -1 on failure

hts_filter_free
void hts_filter_free(hts_filter_t* filt)

@param filt The filter pointer.

hts_filter_init
hts_filter_t* hts_filter_init(const(char)* str)

@param str The filter expression @return A pointer on success, NULL on failure

Structs

hts_expr_val_t
struct hts_expr_val_t

Note we cope with zero-but-true in order to implement a basic "exists(something)" check where "something" may even be zero.

hts_filter_t
struct hts_filter_t

Opaque hts_filter_t type. Definition in hts_expr.c

Meta