gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::compression::Multi::MultiCompData Class Reference

#include <multi.hh>

Inheritance diagram for gem5::compression::Multi::MultiCompData:
gem5::compression::Base::CompressionData

Public Member Functions

 MultiCompData (unsigned index, std::unique_ptr< Base::CompressionData > comp_data)
 Default constructor.
 
 ~MultiCompData ()=default
 Default destructor.
 
uint8_t getIndex () const
 Get the index of the best compressor.
 
- Public Member Functions inherited from gem5::compression::Base::CompressionData
 CompressionData ()
 Default constructor.
 
virtual ~CompressionData ()
 Virtual destructor.
 
void setSizeBits (std::size_t size)
 Set compression size (in bits).
 
std::size_t getSizeBits () const
 Get compression size (in bits).
 
std::size_t getSize () const
 Get compression size (in bytes).
 

Public Attributes

std::unique_ptr< Base::CompressionDatacompData
 Compression data of the best compressor.
 

Private Attributes

const uint8_t index
 Index of the compressor that provided these compression results.
 

Detailed Description

Definition at line 117 of file multi.hh.

Constructor & Destructor Documentation

◆ MultiCompData()

gem5::compression::Multi::MultiCompData::MultiCompData ( unsigned index,
std::unique_ptr< Base::CompressionData > comp_data )

Default constructor.

Parameters
indexIndex of the compressor that provided this compression.
comp_dataCompression data of the best compressor.

Definition at line 51 of file multi.cc.

References compData, and gem5::compression::Base::CompressionData::setSizeBits().

◆ ~MultiCompData()

gem5::compression::Multi::MultiCompData::~MultiCompData ( )
default

Default destructor.

Member Function Documentation

◆ getIndex()

uint8_t gem5::compression::Multi::MultiCompData::getIndex ( ) const

Get the index of the best compressor.

Definition at line 59 of file multi.cc.

References gem5::MipsISA::index.

Referenced by gem5::compression::Multi::decompress().

Member Data Documentation

◆ compData

std::unique_ptr<Base::CompressionData> gem5::compression::Multi::MultiCompData::compData

Compression data of the best compressor.

Definition at line 125 of file multi.hh.

Referenced by gem5::compression::Multi::decompress(), and MultiCompData().

◆ index

const uint8_t gem5::compression::Multi::MultiCompData::index
private

Index of the compressor that provided these compression results.

Definition at line 121 of file multi.hh.


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

Generated on Tue Jun 18 2024 16:24:18 for gem5 by doxygen 1.11.0