Skip to content

Commit 954b879

Browse files
matthiasrichterMohammadAlTurany
authored andcommitted
Adding model_type definition to make underlying coding model available
The typedef makes the underlying coding model accessible to outside code. modified: ../include/DataCompression/HuffmanCodec.h
1 parent 1e6b5d9 commit 954b879

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Utilities/DataCompression/include/DataCompression/HuffmanCodec.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ class HuffmanCodec {
129129
HuffmanCodec(const _CodingModel& model) : mCodingModel(model) {}
130130
~HuffmanCodec() {}
131131

132+
typedef _CodingModel model_type;
133+
132134
/// Return Huffman code for a value
133135
template<typename CodeType, typename ValueType>
134136
const bool Encode(ValueType v, CodeType& code, uint16_t& codeLength) const {

0 commit comments

Comments
 (0)