Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
adaptive_huffman_demo::Display_Node Struct Reference

One node of a reconstructed display tree. More...

#include <adaptive_huffman_demo_support.H>

Collaboration diagram for adaptive_huffman_demo::Display_Node:
[legend]

Public Attributes

int children [2] = {-1, -1}
 Child indices; -1 denotes absence.
 
int symbol = -2
 Byte value, -1 for NYT, -2 for an internal node.
 
std::uint64_t weight = 0
 Sum of the descendant symbol frequencies.
 
std::string code
 Root-to-node path.
 
double x = 0
 Horizontal drawing coordinate.
 
double y = 0
 Vertical drawing coordinate.
 

Detailed Description

One node of a reconstructed display tree.

Definition at line 86 of file adaptive_huffman_demo_support.H.

Member Data Documentation

◆ children

int adaptive_huffman_demo::Display_Node::children[2] = {-1, -1}

Child indices; -1 denotes absence.

Definition at line 88 of file adaptive_huffman_demo_support.H.

◆ code

std::string adaptive_huffman_demo::Display_Node::code

Root-to-node path.

Definition at line 91 of file adaptive_huffman_demo_support.H.

Referenced by adaptive_huffman_demo::insert_code().

◆ symbol

int adaptive_huffman_demo::Display_Node::symbol = -2

Byte value, -1 for NYT, -2 for an internal node.

Definition at line 89 of file adaptive_huffman_demo_support.H.

◆ weight

std::uint64_t adaptive_huffman_demo::Display_Node::weight = 0

Sum of the descendant symbol frequencies.

Definition at line 90 of file adaptive_huffman_demo_support.H.

◆ x

double adaptive_huffman_demo::Display_Node::x = 0

Horizontal drawing coordinate.

Definition at line 92 of file adaptive_huffman_demo_support.H.

◆ y

double adaptive_huffman_demo::Display_Node::y = 0

Vertical drawing coordinate.

Definition at line 93 of file adaptive_huffman_demo_support.H.


The documentation for this struct was generated from the following file: