mirror of
http://43.156.76.180:8026/YuuMJ/EukPhylo.git
synced 2025-12-28 05:10:26 +08:00
41 lines
1.1 KiB
C++
41 lines
1.1 KiB
C++
// $Id: readTree.h 962 2006-11-07 15:13:34Z privmane $
|
|
|
|
#ifndef ___READ_TREE
|
|
#define ___READ_TREE
|
|
#include "definitions.h"
|
|
#include <iostream>
|
|
using namespace std;
|
|
|
|
#define REMARK ';'
|
|
#define MAX_LENGTH_OF_NAME 20
|
|
#define MAX_FILE_SIZE 1000000
|
|
#define FATHER 0
|
|
#define LEFT 1
|
|
#define RIGHT 2
|
|
|
|
#define OPENING_BRACE '('
|
|
#define CLOSING_BRACE ')'
|
|
#define OPENING_BRACE2 '{'
|
|
#define CLOSING_BRACE2 '}'
|
|
#define COMMA ','
|
|
#define COLON ':'
|
|
#define SEMI_COLLON ';'
|
|
#define PERIOD '.'
|
|
|
|
|
|
|
|
bool DistanceExists(vector<char>::const_iterator& p_itCurrent);
|
|
bool verifyChar(vector<char>::const_iterator &p_itCurrent, const char p_cCharToFind);
|
|
int GetNumberOfLeaves(const vector<char>& tree_contents);
|
|
int GetNumberOfInternalNodes(const vector<char>& tree_contents);
|
|
bool IsAtomicPart(const vector<char>::const_iterator p_itCurrent);
|
|
vector<char> PutTreeFileIntoVector(istream &in);
|
|
|
|
MDOUBLE getDistance(vector<char>::const_iterator &p_itCurrent);
|
|
bool DistanceExists(vector<char>::const_iterator& p_itCurrent);
|
|
|
|
void clearPosibleComment(vector<char>::const_iterator& p_itCurrent);
|
|
string readPosibleComment(vector<char>::const_iterator& p_itCurrent);
|
|
#endif
|
|
|