gem5  v22.1.0.0
Static Public Member Functions | List of all members
gem5::compression::DictionaryCompressor< T >::Factory< Head, Tail > Struct Template Reference

Create a factory to determine if input matches a pattern. More...

#include <dictionary_compressor.hh>

Static Public Member Functions

static std::unique_ptr< PatterngetPattern (const DictionaryEntry &bytes, const DictionaryEntry &dict_bytes, const int match_location)
 

Detailed Description

template<class T>
template<class Head, class... Tail>
struct gem5::compression::DictionaryCompressor< T >::Factory< Head, Tail >

Create a factory to determine if input matches a pattern.

The if else chains are constructed by recursion. The patterns should be explored sorted by size for correct behaviour.

Definition at line 152 of file dictionary_compressor.hh.

Member Function Documentation

◆ getPattern()

template<class T >
template<class Head , class... Tail>
static std::unique_ptr<Pattern> gem5::compression::DictionaryCompressor< T >::Factory< Head, Tail >::getPattern ( const DictionaryEntry bytes,
const DictionaryEntry dict_bytes,
const int  match_location 
)
inlinestatic

Definition at line 154 of file dictionary_compressor.hh.


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

Generated on Wed Dec 21 2022 10:23:39 for gem5 by doxygen 1.9.1