gem5 v24.0.0.0
Loading...
Searching...
No Matches
ExtensionPool< T > Class Template Reference

#include <extensionPool.h>

Classes

struct  entry
 

Public Member Functions

 ExtensionPool (int size)
 
 ~ExtensionPool ()
 
bool is_from (T *cont)
 
T * construct ()
 
void free (T *cont)
 

Private Attributes

entryunused
 
entryused
 
std::vector< T * > mine
 

Detailed Description

template<class T>
class ExtensionPool< T >

Definition at line 24 of file extensionPool.h.

Constructor & Destructor Documentation

◆ ExtensionPool()

template<class T >
ExtensionPool< T >::ExtensionPool ( int size)
inline

◆ ~ExtensionPool()

Member Function Documentation

◆ construct()

◆ free()

template<class T >
void ExtensionPool< T >::free ( T * cont)
inline

Definition at line 90 of file extensionPool.h.

References sc_assert, ExtensionPool< T >::unused, and ExtensionPool< T >::used.

◆ is_from()

template<class T >
bool ExtensionPool< T >::is_from ( T * cont)
inline

Definition at line 68 of file extensionPool.h.

References ExtensionPool< T >::mine.

Member Data Documentation

◆ mine

◆ unused

◆ used

template<class T >
entry* ExtensionPool< T >::used
private

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

Generated on Tue Jun 18 2024 16:24:09 for gem5 by doxygen 1.11.0