gem5  v20.1.0.0
Classes | Public Member Functions | Private Attributes | List of all members
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 53 of file extensionPool.h.

◆ ~ExtensionPool()

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

Definition at line 64 of file extensionPool.h.

Member Function Documentation

◆ construct()

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

Definition at line 92 of file extensionPool.h.

◆ free()

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

Definition at line 107 of file extensionPool.h.

◆ is_from()

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

Definition at line 85 of file extensionPool.h.

Member Data Documentation

◆ mine

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

Definition at line 119 of file extensionPool.h.

◆ unused

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

◆ used

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

Definition at line 118 of file extensionPool.h.

Referenced by ExtensionPool< T >::entry::entry().


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

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