File: readTree.h

package info (click to toggle)
fastml 3.11-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,772 kB
  • sloc: cpp: 48,522; perl: 3,588; ansic: 819; makefile: 386; python: 83; sh: 55
file content (40 lines) | stat: -rw-r--r-- 1,148 bytes parent folder | download | duplicates (10)
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
// $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