gem5  v19.0.0.0
Public Member Functions | Public Attributes | Private Attributes | List of all members
MultiCompressor::MultiCompData Class Reference

#include <multi.hh>

Inheritance diagram for MultiCompressor::MultiCompData:
BaseCacheCompressor::CompressionData

Public Member Functions

 MultiCompData (unsigned index, std::unique_ptr< BaseCacheCompressor::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 BaseCacheCompressor::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< BaseCacheCompressor::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 90 of file multi.hh.

Constructor & Destructor Documentation

◆ MultiCompData()

MultiCompressor::MultiCompData::MultiCompData ( unsigned  index,
std::unique_ptr< BaseCacheCompressor::CompressionData comp_data 
)

Default constructor.

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

Definition at line 45 of file multi.cc.

References compData, and BaseCacheCompressor::CompressionData::setSizeBits().

◆ ~MultiCompData()

MultiCompressor::MultiCompData::~MultiCompData ( )
default

Default destructor.

Member Function Documentation

◆ getIndex()

uint8_t MultiCompressor::MultiCompData::getIndex ( ) const

Get the index of the best compressor.

Definition at line 53 of file multi.cc.

References index.

Referenced by MultiCompressor::decompress().

Member Data Documentation

◆ compData

std::unique_ptr<BaseCacheCompressor::CompressionData> MultiCompressor::MultiCompData::compData

Compression data of the best compressor.

Definition at line 98 of file multi.hh.

Referenced by MultiCompressor::decompress(), and MultiCompData().

◆ index

const uint8_t MultiCompressor::MultiCompData::index
private

Index of the compressor that provided these compression results.

Definition at line 94 of file multi.hh.

Referenced by getIndex().


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

Generated on Fri Feb 28 2020 16:27:13 for gem5 by doxygen 1.8.13