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

One verified encoding event, plus the tree after the event. More...

#include <adaptive_huffman_demo_support.H>

Collaboration diagram for adaptive_huffman_demo::Frame:
[legend]

Public Attributes

unsigned char byte = 0
 Byte consumed by this event.
 
bool first_appearance = false
 Whether the byte was previously unseen.
 
std::string path
 Tree path before the update.
 
std::string literal
 Eight raw bits on a first appearance.
 
size_t total_bits = 0
 Cumulative encoded length.
 
Snapshot tree
 Encoder state after the update.
 

Detailed Description

One verified encoding event, plus the tree after the event.

Definition at line 216 of file adaptive_huffman_demo_support.H.

Member Data Documentation

◆ byte

unsigned char adaptive_huffman_demo::Frame::byte = 0

Byte consumed by this event.

Definition at line 218 of file adaptive_huffman_demo_support.H.

Referenced by adaptive_huffman_demo::trace().

◆ first_appearance

bool adaptive_huffman_demo::Frame::first_appearance = false

Whether the byte was previously unseen.

Definition at line 219 of file adaptive_huffman_demo_support.H.

Referenced by adaptive_huffman_demo::trace().

◆ literal

std::string adaptive_huffman_demo::Frame::literal

Eight raw bits on a first appearance.

Definition at line 221 of file adaptive_huffman_demo_support.H.

Referenced by adaptive_huffman_demo::trace().

◆ path

std::string adaptive_huffman_demo::Frame::path

Tree path before the update.

Definition at line 220 of file adaptive_huffman_demo_support.H.

Referenced by adaptive_huffman_demo::trace().

◆ total_bits

size_t adaptive_huffman_demo::Frame::total_bits = 0

Cumulative encoded length.

Definition at line 222 of file adaptive_huffman_demo_support.H.

Referenced by adaptive_huffman_demo::trace().

◆ tree

Snapshot adaptive_huffman_demo::Frame::tree

Encoder state after the update.

Definition at line 223 of file adaptive_huffman_demo_support.H.

Referenced by adaptive_huffman_demo::trace().


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