RawSpeed
fast raw decoding library
Loading...
Searching...
No Matches
rawspeed::BinaryPrefixTree< CodeTag > Class Template Referencefinal

#include "codes/BinaryPrefixTree.h"

Collaboration diagram for rawspeed::BinaryPrefixTree< CodeTag >:
[legend]

Classes

struct  Node
struct  Branch
struct  Leaf

Public Types

using Traits = typename AbstractPrefixCode<CodeTag>::Traits
using CodeSymbol = typename AbstractPrefixCode<CodeTag>::CodeSymbol
using CodeTy = typename Traits::CodeTy

Public Member Functions

void add (CodeSymbol symbol, CodeTy value)

Public Attributes

std::unique_ptr< Noderoot

Detailed Description

template<typename CodeTag>
class rawspeed::BinaryPrefixTree< CodeTag >

Definition at line 35 of file BinaryPrefixTree.h.

Member Typedef Documentation

◆ CodeSymbol

template<typename CodeTag>
using rawspeed::BinaryPrefixTree< CodeTag >::CodeSymbol = typename AbstractPrefixCode<CodeTag>::CodeSymbol

Definition at line 38 of file BinaryPrefixTree.h.

◆ CodeTy

template<typename CodeTag>
using rawspeed::BinaryPrefixTree< CodeTag >::CodeTy = typename Traits::CodeTy

Definition at line 39 of file BinaryPrefixTree.h.

◆ Traits

template<typename CodeTag>
using rawspeed::BinaryPrefixTree< CodeTag >::Traits = typename AbstractPrefixCode<CodeTag>::Traits

Definition at line 37 of file BinaryPrefixTree.h.

Member Function Documentation

◆ add()

template<typename CodeTag>
void rawspeed::BinaryPrefixTree< CodeTag >::add ( CodeSymbol symbol,
CodeTy value )

Definition at line 88 of file BinaryPrefixTree.h.

References assert(), rawspeed::implicit_cast(), invariant, and root.

Here is the call graph for this function:

Member Data Documentation

◆ root

template<typename CodeTag>
std::unique_ptr<Node> rawspeed::BinaryPrefixTree< CodeTag >::root

Definition at line 84 of file BinaryPrefixTree.h.

Referenced by add().


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