gem5  v21.1.0.2
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
gem5::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 gem5::TimeBuffer< T >

Definition at line 40 of file timebuf.hh.

Constructor & Destructor Documentation

◆ TimeBuffer() [1/2]

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

Definition at line 140 of file timebuf.hh.

◆ TimeBuffer() [2/2]

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

Definition at line 156 of file timebuf.hh.

◆ ~TimeBuffer()

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

Definition at line 161 of file timebuf.hh.

Member Function Documentation

◆ access()

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

Definition at line 211 of file timebuf.hh.

◆ advance()

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

◆ calculateVectorIndex()

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

◆ getSize()

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

Definition at line 244 of file timebuf.hh.

◆ getWire()

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

◆ id() [1/2]

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

Definition at line 173 of file timebuf.hh.

Referenced by gem5::TimeBuffer< gem5::o3::FetchStruct >::id().

◆ id() [2/2]

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

Definition at line 168 of file timebuf.hh.

◆ operator[]() [1/2]

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

Definition at line 218 of file timebuf.hh.

◆ operator[]() [2/2]

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

Definition at line 225 of file timebuf.hh.

◆ valid()

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

◆ zero()

template<class T >
wire gem5::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

Member Data Documentation

◆ _id

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

◆ base

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

◆ data

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

◆ future

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

◆ index

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

◆ past

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

◆ size

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

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

Generated on Tue Sep 21 2021 12:28:15 for gem5 by doxygen 1.8.17