NCBI C++ ToolKit
Public Member Functions | Public Attributes | List of all members
CTree::STreeEdge Struct Reference

Search Toolkit Book for CTree::STreeEdge

Structure for listing tree edges. More...

#include <algo/cobalt/tree.hpp>

+ Collaboration diagram for CTree::STreeEdge:

Public Member Functions

 STreeEdge (const TPhyTreeNode *n, double d)
 Initialize an edge. More...
 

Public Attributes

const TPhyTreeNodenode
 pointer to this edge in the tree More...
 
double distance
 length of this edge More...
 

Detailed Description

Structure for listing tree edges.

Definition at line 59 of file tree.hpp.

Constructor & Destructor Documentation

◆ STreeEdge()

CTree::STreeEdge::STreeEdge ( const TPhyTreeNode n,
double  d 
)
inline

Initialize an edge.

Parameters
nThe edge [in]
dlength of the edge [in]

Definition at line 67 of file tree.hpp.

Member Data Documentation

◆ distance

double CTree::STreeEdge::distance

length of this edge

Definition at line 61 of file tree.hpp.

◆ node

const TPhyTreeNode* CTree::STreeEdge::node

pointer to this edge in the tree

Definition at line 60 of file tree.hpp.


The documentation for this struct was generated from the following file:
Modified on Fri Sep 20 14:56:58 2024 by modify_doxy.py rev. 669887