gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TBETable< ENTRY > Class Template Reference

#include <TBETable.hh>

Public Member Functions

 TBETable (int number_of_TBEs)
 
bool isPresent (Addr address) const
 
void allocate (Addr address)
 
void deallocate (Addr address)
 
bool areNSlotsAvailable (int n, Tick current_time) const
 
ENTRY * lookup (Addr address)
 
void print (std::ostream &out) const
 

Private Member Functions

 TBETable (const TBETable &obj)
 
TBETableoperator= (const TBETable &obj)
 

Private Attributes

std::unordered_map< Addr, ENTRY > m_map
 
int m_number_of_TBEs
 

Detailed Description

template<class ENTRY>
class TBETable< ENTRY >

Definition at line 38 of file TBETable.hh.

Constructor & Destructor Documentation

template<class ENTRY >
TBETable< ENTRY >::TBETable ( int  number_of_TBEs)
inline

Definition at line 41 of file TBETable.hh.

template<class ENTRY >
TBETable< ENTRY >::TBETable ( const TBETable< ENTRY > &  obj)
private

Member Function Documentation

template<class ENTRY >
void TBETable< ENTRY >::allocate ( Addr  address)
inline

Definition at line 92 of file TBETable.hh.

template<class ENTRY >
bool TBETable< ENTRY >::areNSlotsAvailable ( int  n,
Tick  current_time 
) const
inline

Definition at line 50 of file TBETable.hh.

References TBETable< ENTRY >::m_map, and TBETable< ENTRY >::m_number_of_TBEs.

template<class ENTRY >
void TBETable< ENTRY >::deallocate ( Addr  address)
inline

Definition at line 101 of file TBETable.hh.

template<class ENTRY >
bool TBETable< ENTRY >::isPresent ( Addr  address) const
inline

Definition at line 83 of file TBETable.hh.

References makeLineAddress().

template<class ENTRY >
ENTRY * TBETable< ENTRY >::lookup ( Addr  address)
inline

Definition at line 111 of file TBETable.hh.

template<class ENTRY >
TBETable& TBETable< ENTRY >::operator= ( const TBETable< ENTRY > &  obj)
private
template<class ENTRY >
void TBETable< ENTRY >::print ( std::ostream &  out) const
inline

Definition at line 120 of file TBETable.hh.

Member Data Documentation

template<class ENTRY >
std::unordered_map<Addr, ENTRY> TBETable< ENTRY >::m_map
private

Definition at line 66 of file TBETable.hh.

Referenced by TBETable< ENTRY >::areNSlotsAvailable().

template<class ENTRY >
int TBETable< ENTRY >::m_number_of_TBEs
private

Definition at line 69 of file TBETable.hh.

Referenced by TBETable< ENTRY >::areNSlotsAvailable().


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

Generated on Fri Jun 9 2017 13:04:20 for gem5 by doxygen 1.8.6