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

#include <base.hh>

Inheritance diagram for Compressor::Base::CompressionData:
Compressor::DictionaryCompressor< T >::CompData Compressor::Multi::MultiCompData

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 209 of file base.hh.

Constructor & Destructor Documentation

◆ CompressionData()

Compressor::Base::CompressionData::CompressionData ( )

Default constructor.

Definition at line 51 of file base.cc.

◆ ~CompressionData()

Compressor::Base::CompressionData::~CompressionData ( )
virtual

Virtual destructor.

Without it unique_ptr will cause mem leak.

Definition at line 56 of file base.cc.

Member Function Documentation

◆ getSize()

std::size_t Compressor::Base::CompressionData::getSize ( ) const

Get compression size (in bytes).

Returns
Compressed data size.

Definition at line 73 of file base.cc.

◆ getSizeBits()

std::size_t Compressor::Base::CompressionData::getSizeBits ( ) const

Get compression size (in bits).

Returns
Compressed data size.

Definition at line 67 of file base.cc.

◆ setSizeBits()

void Compressor::Base::CompressionData::setSizeBits ( std::size_t  size)

Set compression size (in bits).

Parameters
sizeCompressed data size.

Definition at line 61 of file base.cc.

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

Member Data Documentation

◆ _size

std::size_t Compressor::Base::CompressionData::_size
private

Compressed cache line size (in bits).

Definition at line 215 of file base.hh.


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

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