gem5  v20.1.0.0
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 37 of file timebuf.hh.

Constructor & Destructor Documentation

◆ TimeBuffer() [1/2]

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

Definition at line 137 of file timebuf.hh.

◆ TimeBuffer() [2/2]

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

Definition at line 153 of file timebuf.hh.

◆ ~TimeBuffer()

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

Definition at line 158 of file timebuf.hh.

Member Function Documentation

◆ access()

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

Definition at line 208 of file timebuf.hh.

◆ 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 241 of file timebuf.hh.

◆ getWire()

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

◆ id() [1/2]

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

Definition at line 170 of file timebuf.hh.

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

◆ id() [2/2]

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

Definition at line 165 of file timebuf.hh.

◆ operator[]() [1/2]

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

Definition at line 215 of file timebuf.hh.

◆ operator[]() [2/2]

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

Definition at line 222 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 236 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 TimeBuffer< T >::_id
protected

◆ base

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

◆ data

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

◆ future

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

◆ index

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

◆ past

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

◆ size

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

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

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