gem5  v22.0.0.1
Public Member Functions | Public Attributes | List of all members
sc_core::sc_byte_heap Class Reference

#include <sc_temporary.hh>

Public Member Functions

char * allocate (std::size_t bytes_n)
 
void initialize (std::size_t heap_size=0x100000)
 
std::size_t length ()
 
 sc_byte_heap ()
 
 sc_byte_heap (std::size_t heap_size)
 
 ~sc_byte_heap ()
 

Public Attributes

char * m_bgn_p
 
char * m_end_p
 
char * m_next_p
 

Detailed Description

Definition at line 97 of file sc_temporary.hh.

Constructor & Destructor Documentation

◆ sc_byte_heap() [1/2]

sc_core::sc_byte_heap::sc_byte_heap ( )
inline

Definition at line 157 of file sc_temporary.hh.

◆ sc_byte_heap() [2/2]

sc_core::sc_byte_heap::sc_byte_heap ( std::size_t  heap_size)
inline

◆ ~sc_byte_heap()

sc_core::sc_byte_heap::~sc_byte_heap ( )
inline

Definition at line 165 of file sc_temporary.hh.

Member Function Documentation

◆ allocate()

char* sc_core::sc_byte_heap::allocate ( std::size_t  bytes_n)
inline

Definition at line 129 of file sc_temporary.hh.

◆ initialize()

void sc_core::sc_byte_heap::initialize ( std::size_t  heap_size = 0x100000)
inline

Definition at line 143 of file sc_temporary.hh.

◆ length()

std::size_t sc_core::sc_byte_heap::length ( )
inline

Definition at line 152 of file sc_temporary.hh.

Member Data Documentation

◆ m_bgn_p

char* sc_core::sc_byte_heap::m_bgn_p

Definition at line 124 of file sc_temporary.hh.

◆ m_end_p

char* sc_core::sc_byte_heap::m_end_p

Definition at line 125 of file sc_temporary.hh.

◆ m_next_p

char* sc_core::sc_byte_heap::m_next_p

Definition at line 126 of file sc_temporary.hh.


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

Generated on Sat Jun 18 2022 08:15:22 for gem5 by doxygen 1.8.17