File: lists.h

package info (click to toggle)
blimps 3.9%2Bds-1
  • links: PTS, VCS
  • area: non-free
  • in suites: bookworm, bullseye, buster
  • size: 6,812 kB
  • sloc: ansic: 43,271; csh: 553; perl: 116; makefile: 99; cs: 27; cobol: 23
file content (103 lines) | stat: -rw-r--r-- 2,498 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/* (C) Copyright 1993-7, Fred Hutchinson Cancer Research Center */
/* Use, modification or distribution of these programs is subject to */
/* the terms of the non-commercial licensing agreement in license.h. */

/* lists.h: definitions and functions for various ordered lists */
/* Written by: Bill Alford */
/* Change log information is at the end of the file. */

#ifndef LISTS_H_
#define LISTS_H_

#include <skiplist.h>

/*
 * Exported variables and data structures
 */


typedef SkipList ScoreList;
typedef SkipList MatrixList;
typedef SkipList BlockList;
typedef SkipList SequenceList;


extern ScoreList    Scores;
extern ScoreList    PrintScores;
extern MatrixList   Matrices;
extern BlockList    Blocks;
extern SequenceList Sequences;
extern Boolean SavedScoresFlag;

extern int MinScoreOfList;	/* the minimum score of the score list */
				/* didn't make a function to do this */
				/* because it would be worse than just */
				/* having a global variable */



/*
 * Exported functions
 */


/* 
 * initialize_lists
 *   initializes the lists.
 *   Parameters: none
 *   Error codes:
 */

extern void initialize_lists();

#ifndef NO_SCORES
/* 
 * enter_score_into_print_scores
 *   Places the score from Scores into PrintScores.  PrintScores is a reverse
 *   ordered list so that the printing comes out with the largest score
 *   first.
 *   Parameters:
 *     Score *score: the score list entry
 *     void *arg: unused, here to match the procedure call in DoForSL
 *   Return code: SL_CONTINUE always.
 *   Error codes: none
 */

extern int enter_score_into_print_scores();

/*
 * insert_in_score_list
 *   Inserts the score entry into the score list and makes sure that the 
 *   number of elements n the list are fewer than the NumberToReport if there
 *   is a limit.
 *   Parameters:
 *     Score score: the score entry.
 *   Return codes: the same as InsertSL.
 *   Error codes: none
 */

extern int insert_in_score_list();

/* 
 * limit_Scores_list_size
 *   Used in insert_in_score_list to limit the size of the score list.
 *   Parameters: 
 *     Score *score: the score list entry
 *     void *arg: unused, here to match the procedure call in DoForSL
 *   Return codes: SL_DELETE if the list is too big, SL_QUIT otherwise.
 *   Error codes: none
 */

int limit_Scores_list_size();

#endif



#endif /*  LISTS_H_ */

/* Change log information follows. */
/* 
  Changes since version 3.2.5:
  1/23/99 Added SavedScoresFlag, used by lists.c, blimps.c, scoring.c, config.c
*/