gem5  v22.1.0.0
Public Member Functions | Private Attributes | List of all members
gem5::compression::Base::CompressionData Class Reference

#include <base.hh>

Inheritance diagram for gem5::compression::Base::CompressionData:
gem5::compression::DictionaryCompressor< T >::CompData gem5::compression::FrequentValues::CompData gem5::compression::Multi::MultiCompData gem5::compression::Perfect::CompData gem5::compression::FPC::FPCCompData

Public Member Functions

 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...

Private Attributes

std::size_t _size
 Compressed cache line size (in bits). More...

Detailed Description

Definition at line 246 of file base.hh.

Constructor & Destructor Documentation

◆ CompressionData()

gem5::compression::Base::CompressionData::CompressionData ( )

Default constructor.

Definition at line 58 of file

◆ ~CompressionData()

gem5::compression::Base::CompressionData::~CompressionData ( )

Virtual destructor.

Without it unique_ptr will cause mem leak.

Definition at line 63 of file

Member Function Documentation

◆ getSize()

std::size_t gem5::compression::Base::CompressionData::getSize ( ) const

Get compression size (in bytes).

Compressed data size.

Definition at line 80 of file

◆ getSizeBits()

std::size_t gem5::compression::Base::CompressionData::getSizeBits ( ) const

Get compression size (in bits).

Compressed data size.

Definition at line 74 of file

◆ setSizeBits()

void gem5::compression::Base::CompressionData::setSizeBits ( std::size_t  size)

Set compression size (in bits).

sizeCompressed data size.

Definition at line 68 of file

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

Member Data Documentation

◆ _size

std::size_t gem5::compression::Base::CompressionData::_size

Compressed cache line size (in bits).

Definition at line 252 of file base.hh.

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

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