NCBI C++ ToolKit
Classes | Typedefs | Functions
phy_node.hpp File Reference
#include <corelib/ncbistd.hpp>
#include <corelib/ncbi_tree.hpp>
+ Include dependency graph for phy_node.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

class  CPhyNodeData
 Data contained at each node of a phylogenetic tree. More...
 

Typedefs

typedef CTreeNode< CPhyNodeDataTPhyTreeNode
 

Functions

CNcbiOstreamoperator<< (CNcbiOstream &os, const TPhyTreeNode &tree)
 Newick format output. More...
 
void WriteNexusTree (CNcbiOstream &os, const TPhyTreeNode &tree, const string &tree_name="the_tree")
 Nexus format output (Newick with some stuff around it). More...
 
void PrintNode (CNcbiOstream &os, const TPhyTreeNode &node)
 Newick but without the terminal ';'. More...
 
TPhyTreeNodeReadNewickTree (CNcbiIstream &is)
 Newick format input. More...
 

Typedef Documentation

◆ TPhyTreeNode

Definition at line 81 of file phy_node.hpp.

Function Documentation

◆ operator<<()

CNcbiOstream& operator<< ( CNcbiOstream os,
const TPhyTreeNode tree 
)

Newick format output.

Definition at line 67 of file phy_node.cpp.

References PrintNode().

◆ PrintNode()

void PrintNode ( CNcbiOstream os,
const TPhyTreeNode node 
)

◆ ReadNewickTree()

TPhyTreeNode* ReadNewickTree ( CNcbiIstream is)

Newick format input.

Uses flex/bison lexer/parser.

Warning
This function is not thread safe. The parser stores its state in global variables.

Definition at line 1386 of file newick.tab.cpp.

References g_NewickIstr, g_NodeList, g_Tree, newick_flex_reset(), yyerror, and yyparse.

Referenced by CPhyObjectLoader::Execute(), CPhyloPhylipReader::GetTree(), CMSAToolJob::x_AddTreeProjectItem(), and CMultiReaderApp::xProcessNewick().

◆ WriteNexusTree()

void WriteNexusTree ( CNcbiOstream os,
const TPhyTreeNode tree,
const string tree_name = "the_tree" 
)

Nexus format output (Newick with some stuff around it).

tree_name gets put in the file.

Definition at line 75 of file phy_node.cpp.

Modified on Fri Sep 20 14:58:28 2024 by modify_doxy.py rev. 669887