RNAlib-2.4.8
grammar.h
Go to the documentation of this file.
1 #ifndef VIENNA_RNA_PACKAGE_GRAMMAR_H
2 #define VIENNA_RNA_PACKAGE_GRAMMAR_H
3 
17 
18 typedef int (vrna_callback_gr_rule)(vrna_fold_compound_t *vc,
19  int i,
20  int j,
21  void *data);
22 
23 
24 typedef FLT_OR_DBL (vrna_callback_gr_rule_exp)(vrna_fold_compound_t *vc,
25  int i,
26  int j,
27  void *data);
28 
29 
30 typedef void (vrna_callback_gr_cond)(vrna_fold_compound_t *fc,
31  unsigned char stage,
32  void *data);
33 
34 
35 typedef void (vrna_callback_gr_free_data)(void *data);
36 
37 
38 typedef struct vrna_gr_aux_s vrna_gr_aux_t;
39 
40 
41 struct vrna_gr_aux_s {
42  vrna_callback_gr_cond *cb_proc;
44  vrna_callback_gr_rule *cb_aux_f;
45  vrna_callback_gr_rule *cb_aux_c;
46  vrna_callback_gr_rule *cb_aux_m;
47  vrna_callback_gr_rule *cb_aux_m1;
48  vrna_callback_gr_rule *cb_aux;
49 
50  vrna_callback_gr_rule_exp *cb_aux_exp_f;
51  vrna_callback_gr_rule_exp *cb_aux_exp_c;
52  vrna_callback_gr_rule_exp *cb_aux_exp_m;
53  vrna_callback_gr_rule_exp *cb_aux_exp_m1;
54  vrna_callback_gr_rule_exp *cb_aux_exp;
55 
56  void *data;
57  vrna_callback_gr_free_data *free_data;
58 };
59 
69 #endif
vrna_callback_gr_cond * cb_proc
A callback for pre- and post-processing of auxiliary grammar rules.
Definition: grammar.h:42
double FLT_OR_DBL
Typename for floating point number in partition function computations.
Definition: basic.h:43
The most basic data structure required by many functions throughout the RNAlib.
Definition: fold_compound.h:132
Definition: grammar.h:41
Various data structures and pre-processor macros.