gem5  v20.1.0.0
Public Member Functions | Public Attributes | Private Attributes | List of all members
Compressor::Multi::MultiCompData Class Reference

#include <multi.hh>

Inheritance diagram for Compressor::Multi::MultiCompData:
Compressor::Base::CompressionData

Public Member Functions

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

Public Attributes

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

Private Attributes

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

Detailed Description

Definition at line 111 of file multi.hh.

Constructor & Destructor Documentation

◆ MultiCompData()

Compressor::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 47 of file multi.cc.

References compData, and Compressor::Base::CompressionData::setSizeBits().

◆ ~MultiCompData()

Compressor::Multi::MultiCompData::~MultiCompData ( )
default

Default destructor.

Member Function Documentation

◆ getIndex()

uint8_t Compressor::Multi::MultiCompData::getIndex ( ) const

Get the index of the best compressor.

Definition at line 55 of file multi.cc.

References MipsISA::index.

Referenced by Compressor::Multi::decompress().

Member Data Documentation

◆ compData

std::unique_ptr<Base::CompressionData> Compressor::Multi::MultiCompData::compData

Compression data of the best compressor.

Definition at line 119 of file multi.hh.

Referenced by Compressor::Multi::decompress(), and MultiCompData().

◆ index

const uint8_t Compressor::Multi::MultiCompData::index
private

Index of the compressor that provided these compression results.

Definition at line 115 of file multi.hh.


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

Generated on Wed Sep 30 2020 14:02:39 for gem5 by doxygen 1.8.17