mapgd  0.4
A program for the Maximum-likelihood analysis of population genomic data.
 All Data Structures Functions Variables Friends Groups Pages
base.h
1 #ifndef BASE_H_
2 #define BASE_H_
3 
4 #include <iostream>
5 #include "typedef.h"
6 #include <cfloat>
7 #include <iomanip>
8 
9 // PLEASE LIMIT LINE LENGTH TO 79 CHARACTERS----------------------------------/
10 
12 
16 class Base {
17 private:
19 
21  bool masked;
22 public:
23  Base();
24 
26  Base(const char &);
27 
29  Base(const gt_t &);
30 
32  gt_t base;
33 
35  friend std::ostream& operator << (std::ostream&, const Base&);
37  friend std::istream& operator >> (std::istream&, Base&);
38 
39  static char btoc(const gt_t &);
40  static gt_t ctob(const char &);
41 };
42 
43 #endif
A class converts human readable bases to bit flags.
Definition: base.h:16
gt_t base
Represents a single base.
Definition: base.h:32
bool masked
indicates the site has been masked.
Definition: base.h:21
friend std::ostream & operator<<(std::ostream &, const Base &)
use the << operator to write Allele.
Definition: base.cc:128
friend std::istream & operator>>(std::istream &, Base &)
use the >> operator to read Allele.
Definition: base.cc:120