gem5 v24.0.0.0
Loading...
Searching...
No Matches
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.
 
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).
 

Private Attributes

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

Detailed Description

Definition at line 245 of file base.hh.

Constructor & Destructor Documentation

◆ CompressionData()

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

Default constructor.

Definition at line 57 of file base.cc.

◆ ~CompressionData()

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

Virtual destructor.

Without it unique_ptr will cause mem leak.

Definition at line 62 of file base.cc.

Member Function Documentation

◆ getSize()

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

Get compression size (in bytes).

Returns
Compressed data size.

Definition at line 79 of file base.cc.

◆ getSizeBits()

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

Get compression size (in bits).

Returns
Compressed data size.

Definition at line 73 of file base.cc.

◆ setSizeBits()

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

Set compression size (in bits).

Parameters
sizeCompressed data size.

Definition at line 67 of file base.cc.

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

Member Data Documentation

◆ _size

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

Compressed cache line size (in bits).

Definition at line 251 of file base.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