File: splitTreeUtil.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 (25 lines) | stat: -rw-r--r-- 817 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
// $Id: splitTreeUtil.h 962 2006-11-07 15:13:34Z privmane $

#ifndef ___SPLIT_TREE_UTIL
#define ___SPLIT_TREE_UTIL
#include "tree.h"
#include "split.h"

#include <vector>
#include <map>
using namespace std;


tree::nodeP findNodeToSplit(const tree& et,const split& mySplit,const map<string, int> & nameIdMap);
void applySplit(tree& et, const split& mySplit,const map<string, int> & nameIdMap);
void splitSonsFromNode(tree & et, tree::nodeP fatherNode, vector<tree::nodeP> & son2split);
void applySplitToRoot(tree& et, const split& mySplit,const map<string, int> & nameIdMap);
vector<tree::nodeP> findSonsThatHaveToBeSplit(const tree& et,const split& mySplit,const map<string, int> & nameIdMap);
bool childIsInTheSplit(const tree::nodeP & myNode, const split& mySplit,const map<string, int> & nameIdMap);



#endif