gem5 v25.0.0.1
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

Definition at line 36 of file extensionPool.h.

References mine, unused, and used.

◆ ~ExtensionPool()

template<class T>
ExtensionPool< T >::~ExtensionPool ( )
inline

Definition at line 47 of file extensionPool.h.

References mine, unused, and used.

Member Function Documentation

◆ construct()

template<class T>
T * ExtensionPool< T >::construct ( )
inline

Definition at line 75 of file extensionPool.h.

References mine, unused, and used.

◆ free()

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

Definition at line 90 of file extensionPool.h.

References sc_assert, unused, and used.

◆ is_from()

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

Definition at line 68 of file extensionPool.h.

References mine.

Member Data Documentation

◆ mine

template<class T>
std::vector<T*> ExtensionPool< T >::mine
private

Definition at line 102 of file extensionPool.h.

Referenced by construct(), ExtensionPool(), is_from(), and ~ExtensionPool().

◆ unused

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

Definition at line 100 of file extensionPool.h.

Referenced by construct(), ExtensionPool(), free(), and ~ExtensionPool().

◆ used

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

Definition at line 101 of file extensionPool.h.

Referenced by construct(), ExtensionPool(), free(), and ~ExtensionPool().


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

Generated on Sat Oct 18 2025 08:06:48 for gem5 by doxygen 1.14.0