NCBI C++ ToolKit
fastme.h
Go to the documentation of this file.

Go to the SVN repository for this file.

1 #ifndef FASTME_H
2 #define FASTME_H
3 
4 /* $Id: fastme.h 33815 2007-05-04 17:18:18Z kazimird $
5 * ===========================================================================
6 *
7 * PUBLIC DOMAIN NOTICE
8 * National Center for Biotechnology Information
9 *
10 * This software/database is a "United States Government Work" under the
11 * terms of the United States Copyright Act. It was written as part of
12 * the author's official duties as a United States Government employee and
13 * thus cannot be copyrighted. This software/database is freely available
14 * to the public for use. The National Library of Medicine and the U.S.
15 * Government have not placed any restriction on its use or reproduction.
16 *
17 * Although all reasonable efforts have been taken to ensure the accuracy
18 * and reliability of the software and data, the NLM and the U.S.
19 * Government do not and cannot warrant the performance or results that
20 * may be obtained by using this software or data. The NLM and the U.S.
21 * Government disclaim all warranties, express or implied, including
22 * warranties of performance, merchantability or fitness for any particular
23 * purpose.
24 *
25 * Please cite the author in any work or product based on this material.
26 *
27 * ===========================================================================
28 *
29 * Author: Richard Desper
30 *
31 * File Description: fastme.h
32 *
33 * A part of the Miminum Evolution algorithm
34 *
35 */
36 
37 #include <corelib/ncbistl.hpp>
38 
40 BEGIN_SCOPE(fastme)
41 
42 #define MAX_FILE_NAME_LENGTH 50
43 #define MAX_EVENT_NAME 24
44 #ifdef INFINITY
45 # undef INFINITY
46 #endif
47 #define INFINITY 10000000
48 #define NEGINFINITY -10000000
49 #define NONE 0
50 #define UP 1
51 #define DOWN 2
52 #define LEFT 3
53 #define RIGHT 4
54 #define SKEW 5
55 
56 typedef char boolean;
57 
58 #ifndef true_fastme
59 #define true_fastme 1
60 #endif
61 
62 #ifndef TRUE_FASTME
63 #define TRUE_FASTME 1
64 #endif
65 
66 #ifndef false_fastme
67 #define false_fastme 0
68 #endif
69 #ifndef FALSE_FASTME
70 #define FALSE_FASTME 0
71 #endif
72 #ifndef EXIT_FAILURE
73 #define EXIT_FAILURE (-1)
74 #endif
75 
76 #define ReadOpenParenthesis 0
77 #define ReadSubTree 1
78 #define ReadLabel 2
79 #define ReadWeight 3
80 #define ReadSize 4
81 #define ReadEntries 5
82 #define Done 6
83 
84 #define MAXSIZE 70000
85 
86 extern int verbose;
87 
88 boolean whitespace(char c);
89 
90 END_SCOPE(fastme)
92 
93 #include "fastme_common.h"
94 #include <corelib/ncbistd.hpp>
95 #endif /* FASTME_H */
#define END_SCOPE(ns)
End the previously defined scope.
Definition: ncbistl.hpp:73
char boolean
Definition: fastme.h:56
The NCBI C++/STL use hints.
int verbose
Definition: fastme.cpp:45
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:101
#define BEGIN_SCOPE(ns)
Define a new scope.
Definition: ncbistl.hpp:70
boolean whitespace(char c)
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:98
Modified on Sat Apr 30 15:36:40 2016 by modify_doxy.py rev. 426318