NCBI C++ ToolKit
Public Member Functions | Private Member Functions | Private Attributes | List of all members
bm::gamma_encoder< T, TBitIO > Class Template Reference

Search Toolkit Book for bm::gamma_encoder

Functor for Elias Gamma encoding. More...

#include <util/bitset/encoding.h>

Public Member Functions

 gamma_encoder (TBitIO &bout)
 
void operator() (T value)
 Encode word. More...
 

Private Member Functions

 gamma_encoder (const gamma_encoder &)
 
gamma_encoderoperator= (const gamma_encoder &)
 

Private Attributes

TBitIO & bout_
 

Detailed Description

template<typename T, typename TBitIO>
class bm::gamma_encoder< T, TBitIO >

Functor for Elias Gamma encoding.

Definition at line 340 of file encoding.h.

Constructor & Destructor Documentation

◆ gamma_encoder() [1/2]

template<typename T , typename TBitIO >
bm::gamma_encoder< T, TBitIO >::gamma_encoder ( TBitIO &  bout)
inline

Definition at line 343 of file encoding.h.

◆ gamma_encoder() [2/2]

template<typename T , typename TBitIO >
bm::gamma_encoder< T, TBitIO >::gamma_encoder ( const gamma_encoder< T, TBitIO > &  )
private

Member Function Documentation

◆ operator()()

template<typename T , typename TBitIO >
void bm::gamma_encoder< T, TBitIO >::operator() ( T  value)
inline

Encode word.

Definition at line 347 of file encoding.h.

References rapidjson::value.

◆ operator=()

template<typename T , typename TBitIO >
gamma_encoder& bm::gamma_encoder< T, TBitIO >::operator= ( const gamma_encoder< T, TBitIO > &  )
private

Member Data Documentation

◆ bout_

template<typename T , typename TBitIO >
TBitIO& bm::gamma_encoder< T, TBitIO >::bout_
private

Definition at line 352 of file encoding.h.


The documentation for this class was generated from the following file:
Modified on Sat May 18 11:42:13 2024 by modify_doxy.py rev. 669887