gem5  v19.0.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
TimeBuffer< T > Class Template Reference

#include <timebuf.hh>

Classes

class  wire
 

Public Member Functions

 TimeBuffer (int p, int f)
 
 TimeBuffer ()
 
 ~TimeBuffer ()
 
void id (int id)
 
int id ()
 
void advance ()
 
T * access (int idx)
 
T & operator[] (int idx)
 
const T & operator[] (int idx) const
 
wire getWire (int idx)
 
wire zero ()
 
unsigned getSize ()
 

Protected Member Functions

void valid (int idx) const
 
int calculateVectorIndex (int idx) const
 

Protected Attributes

int past
 
int future
 
unsigned size
 
int _id
 
char * data
 
std::vector< char * > index
 
unsigned base
 

Friends

class wire
 

Detailed Description

template<class T>
class TimeBuffer< T >

Definition at line 40 of file timebuf.hh.

Constructor & Destructor Documentation

◆ TimeBuffer() [1/2]

template<class T>
TimeBuffer< T >::TimeBuffer ( int  p,
int  f 
)
inline

Definition at line 140 of file timebuf.hh.

◆ TimeBuffer() [2/2]

template<class T>
TimeBuffer< T >::TimeBuffer ( )
inline

Definition at line 156 of file timebuf.hh.

◆ ~TimeBuffer()

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

Definition at line 161 of file timebuf.hh.

Member Function Documentation

◆ access()

template<class T>
T* TimeBuffer< T >::access ( int  idx)
inline

◆ advance()

template<class T>
void TimeBuffer< T >::advance ( )
inline

◆ calculateVectorIndex()

template<class T>
int TimeBuffer< T >::calculateVectorIndex ( int  idx) const
inlineprotected

◆ getSize()

template<class T>
unsigned TimeBuffer< T >::getSize ( )
inline

Definition at line 244 of file timebuf.hh.

Referenced by FullO3CPU< O3CPUImpl >::drain(), and DefaultIEW< Impl >::takeOverFrom().

◆ getWire()

template<class T>
wire TimeBuffer< T >::getWire ( int  idx)
inline

◆ id() [1/2]

template<class T>
void TimeBuffer< T >::id ( int  id)
inline

Definition at line 168 of file timebuf.hh.

◆ id() [2/2]

template<class T>
int TimeBuffer< T >::id ( )
inline

Definition at line 173 of file timebuf.hh.

Referenced by TimeBuffer< DecodeStruct >::id().

◆ operator[]() [1/2]

template<class T>
T& TimeBuffer< T >::operator[] ( int  idx)
inline

Definition at line 218 of file timebuf.hh.

◆ operator[]() [2/2]

template<class T>
const T& TimeBuffer< T >::operator[] ( int  idx) const
inline

Definition at line 225 of file timebuf.hh.

◆ valid()

template<class T>
void TimeBuffer< T >::valid ( int  idx) const
inlineprotected

◆ zero()

template<class T>
wire TimeBuffer< T >::zero ( )
inline

Definition at line 239 of file timebuf.hh.

Friends And Related Function Documentation

◆ wire

template<class T>
friend class wire
friend

Definition at line 58 of file timebuf.hh.

Member Data Documentation

◆ _id

template<class T>
int TimeBuffer< T >::_id
protected

Definition at line 46 of file timebuf.hh.

Referenced by TimeBuffer< DecodeStruct >::id().

◆ base

template<class T>
unsigned TimeBuffer< T >::base
protected

Definition at line 50 of file timebuf.hh.

Referenced by TimeBuffer< DecodeStruct >::calculateVectorIndex().

◆ data

template<class T>
char* TimeBuffer< T >::data
protected

◆ future

template<class T>
int TimeBuffer< T >::future
protected

Definition at line 44 of file timebuf.hh.

Referenced by TimeBuffer< DecodeStruct >::advance().

◆ index

template<class T>
std::vector<char *> TimeBuffer< T >::index
protected

Definition at line 49 of file timebuf.hh.

◆ past

template<class T>
int TimeBuffer< T >::past
protected

Definition at line 43 of file timebuf.hh.

◆ size

template<class T>
unsigned TimeBuffer< T >::size
protected

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

Generated on Fri Feb 28 2020 16:27:17 for gem5 by doxygen 1.8.13