proxygen
TestingHuffTree Class Reference
Inheritance diagram for TestingHuffTree:
proxygen::huffman::HuffTree

Public Member Functions

 TestingHuffTree (const HuffTree &tree)
 
const SuperHuffNodegetInternalTable ()
 
- Public Member Functions inherited from proxygen::huffman::HuffTree
 HuffTree (const uint32_t *codes, const uint8_t *bits)
 
 HuffTree (HuffTree &&tree)=default
 
 ~HuffTree ()
 
bool decode (const uint8_t *buf, uint32_t size, folly::fbstring &literal) const
 
uint32_t encode (folly::StringPiece literal, folly::io::QueueAppender &buf) const
 
uint32_t getEncodeSize (folly::StringPiece literal) const
 
std::pair< uint32_t, uint8_tgetCode (uint8_t ch) const
 
const uint32_tcodesTable () const
 
const uint8_tbitsTable () const
 

Static Public Member Functions

static TestingHuffTree getHuffTree ()
 

Additional Inherited Members

- Protected Member Functions inherited from proxygen::huffman::HuffTree
 HuffTree (const HuffTree &tree)
 
- Protected Attributes inherited from proxygen::huffman::HuffTree
SuperHuffNode table_ [46]
 

Detailed Description

Class used in testing to expose the internal tables for requests and responses

Definition at line 264 of file HuffmanTests.cpp.

Constructor & Destructor Documentation

TestingHuffTree::TestingHuffTree ( const HuffTree tree)
inlineexplicit

Definition at line 267 of file HuffmanTests.cpp.

267 : HuffTree(tree) {}
HuffTree(const uint32_t *codes, const uint8_t *bits)
Definition: Huffman.cpp:21

Member Function Documentation

static TestingHuffTree TestingHuffTree::getHuffTree ( )
inlinestatic

Definition at line 273 of file HuffmanTests.cpp.

References proxygen::huffman::huffTree().

Referenced by TEST_F().

273  {
274  TestingHuffTree reqTree(huffTree());
275  return reqTree;
276  }
const HuffTree & huffTree()
Definition: Huffman.cpp:252
const SuperHuffNode* TestingHuffTree::getInternalTable ( )
inline

Definition at line 269 of file HuffmanTests.cpp.

Referenced by TEST_F().

269  {
270  return table_;
271  }
SuperHuffNode table_[46]
Definition: Huffman.h:152

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