Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::net::http::huffman_node_t Class Reference

Huffman node. More...

#include <Huffman.h>

Public Member Functions

 huffman_node_t (huffman_node_t *l=nullptr, huffman_node_t *r=nullptr, int16_t c=-1) noexcept
 
virtual ~huffman_node_t ()
 
int16_t code () const
 
void code (int16_t c)
 
huffman_node_tleft ()
 
void left (huffman_node_t *l)
 
huffman_node_tright ()
 
void right (huffman_node_t *r)
 

Protected Attributes

huffman_node_tm_left
 
huffman_node_tm_right
 
int16_t m_code
 

Detailed Description

Huffman node.

Constructor & Destructor Documentation

◆ huffman_node_t()

huffman_node_t::huffman_node_t ( huffman_node_t * l = nullptr,
huffman_node_t * r = nullptr,
int16_t c = -1 )
explicitnoexcept

◆ ~huffman_node_t()

virtual sese::net::http::huffman_node_t::~huffman_node_t ( )
inlinevirtual

References m_code, m_left, and m_right.

Member Function Documentation

◆ code() [1/2]

int16_t sese::net::http::huffman_node_t::code ( ) const
inlinenodiscard

◆ code() [2/2]

void sese::net::http::huffman_node_t::code ( int16_t c)
inline

References c, and m_code.

◆ left() [1/2]

huffman_node_t * sese::net::http::huffman_node_t::left ( )
inline

◆ left() [2/2]

void sese::net::http::huffman_node_t::left ( huffman_node_t * l)
inline

References m_left.

◆ right() [1/2]

huffman_node_t * sese::net::http::huffman_node_t::right ( )
inline

◆ right() [2/2]

void sese::net::http::huffman_node_t::right ( huffman_node_t * r)
inline

References m_right.

Member Data Documentation

◆ m_code

int16_t sese::net::http::huffman_node_t::m_code
protected

Referenced by code(), code(), and ~huffman_node_t().

◆ m_left

huffman_node_t* sese::net::http::huffman_node_t::m_left
protected

Referenced by left(), left(), and ~huffman_node_t().

◆ m_right

huffman_node_t* sese::net::http::huffman_node_t::m_right
protected

Referenced by right(), right(), and ~huffman_node_t().


The documentation for this class was generated from the following files: