source: branches/profile/PROBE/pt_prototypes.h

Last change on this file was 11060, checked in by westram, 10 years ago
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.7 KB
Line 
1/* This file is generated by aisc_mkpt.
2 * Any changes you make here will be overwritten later!
3 */
4
5#ifndef PT_PROTOTYPES_H
6#define PT_PROTOTYPES_H
7
8/* define ARB attributes: */
9#ifndef ATTRIBUTES_H
10# include <attributes.h>
11#endif
12
13
14/* PT_buildtree.cxx */
15
16 class DataLoc;
17
18long PTD_save_lower_tree(FILE *out, POS_TREE1 *node, long pos, ARB_ERROR& error);
19long PTD_save_upper_tree(FILE *out, POS_TREE1*& node, long pos, long& node_pos, ARB_ERROR& error);
20ARB_ERROR enter_stage_1_build_tree(PT_main *, const char *tname, ULONG ARM_size_kb) __ATTR__USERESULT;
21ARB_ERROR enter_stage_2_load_tree(PT_main *, const char *tname) __ATTR__USERESULT;
22
23/* PT_debug.cxx */
24void PT_dump_tree_statistics(const char *indexfilename);
25template <typename PT >void PT_dump_POS_TREE_recursive(PT *pt, const char *prefix, FILE *out);
26void PT_dump_POS_TREE(POS_TREE1 *IF_DEBUG (node), FILE *IF_DEBUG (out));
27int PT_index_dump(const PT_main *main);
28
29/* PT_etc.cxx */
30void pt_export_error(PT_local *locs, const char *error);
31void pt_export_error_if(PT_local *locs, ARB_ERROR& error);
32const char *virt_name(const PT_probematch *ml);
33const char *virt_fullname(const PT_probematch *ml);
34char *ptpd_read_names(PT_local *locs, const char *names_list, const char *checksums, ARB_ERROR& error);
35bytestring *PT_unknown_names(const PT_pdc *pdc);
36
37/* PT_family.cxx */
38int find_family(PT_family *ffinder, bytestring *species);
39
40/* PT_findEx.cxx */
41int PT_find_exProb(PT_exProb *pep, int dummy_1x);
42
43/* PT_io.cxx */
44int compress_data(char *probestring);
45ARB_ERROR probe_read_data_base(const char *name, bool readOnly) __ATTR__USERESULT;
46size_t probe_compress_sequence(char *seq, size_t seqsize);
47char *readable_probe(const char *compressed_probe, size_t len, char T_or_U);
48GB_ERROR PT_prepare_data(GBDATA *gb_main);
49GB_ERROR PT_init_input_data(void);
50void PT_build_species_hash(void);
51long PT_abs_2_ecoli_rel(long pos);
52
53/* PT_main.cxx */
54void PT_init_psg(void);
55void PT_exit_psg(void);
56int server_shutdown(PT_main *, aisc_string passwd);
57int broadcast(PT_main *main, int dummy_1x);
58int ARB_main(int argc, char *argv[]);
59
60/* PT_match.cxx */
61char *create_reversed_probe(char *probe, int len);
62int probe_match(PT_local *locs, aisc_string probestring);
63char *get_match_overlay(const PT_probematch *ml);
64bytestring *match_string(const PT_local *locs);
65bytestring *MP_match_string(const PT_local *locs);
66bytestring *MP_all_species_string(const PT_local *);
67int MP_count_all_species(const PT_local *);
68
69/* PT_new_design.cxx */
70char *get_design_info(const PT_tprobes *tprobe);
71char *get_design_hinfo(const PT_pdc *pdc);
72int PT_start_design(PT_pdc *pdc, int dummy_1x);
73
74/* PT_prefixtree.cxx */
75template <typename CHAINITER >bool PT_chain_has_valid_entries(const typename CHAINITER ::POS_TREE_TYPE *const node);
76void PT_init_cache_sizes(Stage stage);
77void PT_add_to_chain(POS_TREE1 *node, const DataLoc& loc);
78POS_TREE1 *PT_change_leaf_to_node(POS_TREE1 *node);
79POS_TREE1 *PT_leaf_to_chain(POS_TREE1 *node);
80POS_TREE1 *PT_create_leaf(POS_TREE1 **pfather, PT_base base, const DataLoc& loc);
81void PTD_put_longlong(FILE *out, ULONG i);
82void PTD_put_int(FILE *out, ULONG i);
83void PTD_put_short(FILE *out, ULONG i);
84void PTD_put_byte(FILE *out, ULONG i);
85int PTD_put_compact_nat(FILE *out, uint_32 nat);
86void PTD_debug_nodes(void);
87void PTD_delete_saved_node(POS_TREE1*& node);
88long PTD_write_leafs_to_disk(FILE *out, POS_TREE1 *const node, long pos, long *node_pos, ARB_ERROR& error);
89ARB_ERROR PTD_read_leafs_from_disk(const char *fname, POS_TREE2*& root_ptr) __ATTR__USERESULT;
90const char *get_blocksize_description(int blocksize);
91
92/* probe_tree.h */
93template <typename T >int PT_forwhole_chain(POS_TREE1 *node, T& func);
94template <typename T >int PT_forwhole_chain(POS_TREE2 *node, T& func);
95
96#else
97#error pt_prototypes.h included twice
98#endif /* PT_PROTOTYPES_H */
Note: See TracBrowser for help on using the repository browser.