gem5  v21.2.1.1
Public Member Functions | List of all members
gem5::compression::Zero::PatternX Class Reference

#include <zero.hh>

Inheritance diagram for gem5::compression::Zero::PatternX:
gem5::compression::DictionaryCompressor< T >::UncompressedPattern gem5::compression::DictionaryCompressor< T >::Pattern

Public Member Functions

 PatternX (const DictionaryEntry bytes, const int match_location)
 
- Public Member Functions inherited from gem5::compression::DictionaryCompressor< T >::UncompressedPattern
 UncompressedPattern (const int number, const uint64_t code, const uint64_t metadata_length, const int match_location, const DictionaryEntry bytes)
 
DictionaryEntry decompress (const DictionaryEntry dict_bytes) const override
 Decompress the pattern. More...
 
- Public Member Functions inherited from gem5::compression::DictionaryCompressor< T >::Pattern
 Pattern (const int number, const uint64_t code, const uint64_t metadata_length, const uint64_t num_unmatched_bits, const int match_location, const bool allocate=true)
 Default constructor. More...
 
virtual ~Pattern ()=default
 Default destructor. More...
 
int getPatternNumber () const
 Get enum number associated to this pattern. More...
 
uint8_t getCode () const
 Get code of this pattern. More...
 
uint8_t getMatchLocation () const
 Get the index of the dictionary match location. More...
 
virtual std::size_t getSizeBits () const
 Get size, in bits, of the pattern (excluding prefix). More...
 
bool shouldAllocate () const
 Determine if pattern allocates a dictionary entry. More...
 
std::string print () const
 Extract pattern's information to a string. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from gem5::compression::DictionaryCompressor< T >::UncompressedPattern
static bool isPattern (const DictionaryEntry &bytes, const DictionaryEntry &dict_bytes, const int match_location)
 
- Protected Attributes inherited from gem5::compression::DictionaryCompressor< T >::Pattern
const int patternNumber
 Pattern enum number. More...
 
const uint8_t code
 Code associated to the pattern. More...
 
const uint8_t length
 Length, in bits, of the code and match location. More...
 
const uint8_t numUnmatchedBits
 Number of unmatched bits. More...
 
const int matchLocation
 Index representing the the match location. More...
 
const bool allocate
 Wether the pattern allocates a dictionary entry or not. More...
 

Detailed Description

Definition at line 110 of file zero.hh.

Constructor & Destructor Documentation

◆ PatternX()

gem5::compression::Zero::PatternX::PatternX ( const DictionaryEntry  bytes,
const int  match_location 
)
inline

Definition at line 114 of file zero.hh.


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

Generated on Wed May 4 2022 12:15:03 for gem5 by doxygen 1.8.17