File: nxsdefs.h

package info (click to toggle)
iqtree 2.0.7%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 14,620 kB
  • sloc: cpp: 142,571; ansic: 57,789; sh: 275; python: 242; makefile: 95
file content (79 lines) | stat: -rw-r--r-- 2,886 bytes parent folder | download | duplicates (5)
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
//	Copyright (C) 1999-2003 Paul O. Lewis
//
//	This file is part of NCL (Nexus Class Library) version 2.0.
//
//	NCL is free software; you can redistribute it and/or modify
//	it under the terms of the GNU General Public License as published by
//	the Free Software Foundation; either version 2 of the License, or
//	(at your option) any later version.
//
//	NCL is distributed in the hope that it will be useful,
//	but WITHOUT ANY WARRANTY; without even the implied warranty of
//	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//	GNU General Public License for more details.
//
//	You should have received a copy of the GNU General Public License
//	along with NCL; if not, write to the Free Software Foundation, Inc., 
//	59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
#ifndef NCL_NXSDEFS_H
#define NCL_NXSDEFS_H

#define NCL_NAME_AND_VERSION  "NCL version 2.0"
#define NCL_COPYRIGHT         "Copyright (c) 1999-2003 by Paul O. Lewis"
#define NCL_HOMEPAGEURL       "http://lewis.eeb.uconn.edu/ncl/"

// Maximum number of states that can be stored; the only limitation is that this
// number be less than the maximum size of an int (not likely to be a problem).
// A good number for this is 76, which is 96 (the number of distinct symbols
// able to be input from a standard keyboard) less 20 (the number of symbols
// symbols disallowed by the NEXUS standard for use as state symbols)
//
#define NCL_MAX_STATES         76

#if defined(__MWERKS__) || defined(__DECCXX) || defined(_MSC_VER)
	typedef long		file_pos;
#else
	typedef streampos	file_pos;
#endif

#define	SUPPORT_OLD_NCL_NAMES

class NxsString;

typedef vector<bool>										NxsBoolVector;
typedef vector<char>										NxsCharVector;
typedef vector<unsigned>									NxsUnsignedVector;
typedef vector<NxsString>									NxsStringVector;
typedef vector<NxsStringVector>								NxsAllelesVector;

typedef set< unsigned, less<unsigned> >						NxsUnsignedSet;

typedef map< unsigned, NxsStringVector, less<unsigned> >	NxsStringVectorMap;
typedef map< NxsString, NxsString, less<NxsString> >		NxsStringMap;
typedef map< NxsString, NxsUnsignedSet, less<NxsString> >	NxsUnsignedSetMap;

// The following typedefs are simply for maintaining compatibility with existing code.
// The names on the right are deprecated and should not be used.
//
typedef	NxsBoolVector		BoolVect;
typedef NxsUnsignedSet		IntSet;
typedef NxsUnsignedSetMap	IntSetMap;
typedef NxsAllelesVector	AllelesVect;
typedef NxsStringVector		LabelList;
typedef NxsStringVector		StrVec;
typedef NxsStringVector		vecStr;
typedef NxsStringVectorMap	LabelListBag;
typedef NxsStringMap		AssocList;

//class NxsTreesBlock;
//class NxsTaxaBlock;
//class NxsAllelesBlock;
//class NxsAssumptionsBlock;
//class NxsCharactersBlock;
//class NxsDistancesBlock;
//class NxsAssumptionsBlock;
//class NxsDiscreteDatum;
//class NxsDiscreteMatrix;

#endif