gem5  v22.1.0.0
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 73 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 109 of file sc_temporary.hh.

◆ sc_byte_heap() [2/2]

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

Definition at line 111 of file sc_temporary.hh.

References initialize().

◆ ~sc_byte_heap()

sc_core::sc_byte_heap::~sc_byte_heap ( )
inline

Definition at line 117 of file sc_temporary.hh.

References m_bgn_p.

Member Function Documentation

◆ allocate()

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

Definition at line 81 of file sc_temporary.hh.

References m_bgn_p, m_end_p, and m_next_p.

◆ initialize()

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

Definition at line 95 of file sc_temporary.hh.

References m_bgn_p, m_end_p, and m_next_p.

Referenced by sc_byte_heap().

◆ length()

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

Definition at line 104 of file sc_temporary.hh.

References m_bgn_p, and m_end_p.

Member Data Documentation

◆ m_bgn_p

char* sc_core::sc_byte_heap::m_bgn_p

Definition at line 76 of file sc_temporary.hh.

Referenced by allocate(), initialize(), length(), and ~sc_byte_heap().

◆ m_end_p

char* sc_core::sc_byte_heap::m_end_p

Definition at line 77 of file sc_temporary.hh.

Referenced by allocate(), initialize(), and length().

◆ m_next_p

char* sc_core::sc_byte_heap::m_next_p

Definition at line 78 of file sc_temporary.hh.

Referenced by allocate(), and initialize().


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

Generated on Wed Dec 21 2022 10:25:07 for gem5 by doxygen 1.9.1