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

#include <base.hh>

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

◆ ~CompressionData()

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

Virtual destructor.

Without it unique_ptr will cause mem leak.

Definition at line 63 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 80 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 74 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 68 of file base.cc.

Member Data Documentation

◆ _size

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

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 Tue Sep 21 2021 12:28:50 for gem5 by doxygen 1.8.17