mapgd
0.4
A program for the Maximum-likelihood analysis of population genomic data.
Main Page
Related Pages
Modules
Data Structures
Files
File List
All
Data Structures
Functions
Variables
Friends
Groups
Pages
mapgd_0.4
typedef.h
1
#ifndef _TYPEDEF_H_
2
#define _TYPEDEF_H_
3
4
#include <cstddef>
//Included for ?
5
#include <stdint.h>
//Included for uint32_t, uint16_t
6
#include <cstdlib>
//Becuse why not?
7
#include <math.h>
//Included for float_t.
8
#include <float.h>
//For the limits of floating types.
9
10
/* Some people might consider these types of typedefs "cutesy", in that they
11
* don't do much, but we really want to limit the size of some of these objects
12
* in memory, and so we want to find the smallest data ...
13
*/
14
typedef
uint16_t count_t;
//Should be used to specify depth of coverage only.
15
//Once it is fixed it should be changed to uint8_t or uint16_t.
16
17
typedef
double
real_t;
//most ?
18
typedef
uint16_t id0_t;
//specifies scaffold. limits to 65,536 scaffolds.
19
typedef
uint32_t id1_t;
//specifies bp locations. limits to 4,294,967,296 bp per scaffold.
20
typedef
int64_t id1_off_t;
//specifies an offset specifies a distance between bp, must be
21
typedef
uint8_t gt_t;
//specifies a genotype. limit 128.
22
23
#define CNT_MAX 65535
24
#define ID0_MAX 65535
25
#define ID1_MAX 4294967295
26
#define REAL_MAX LDBL_MAX
27
#define GT_MAX 255
28
#define SQL_LINE_SIZE 1024
29
30
31
#endif
Generated on Mon Oct 1 2018 13:55:20 for mapgd by
1.8.6