gem5 v24.0.0.0
Loading...
Searching...
No Matches
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]

◆ 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

Member Function Documentation

◆ access()

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

◆ advance()

◆ 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.

References gem5::TimeBuffer< T >::size.

◆ getWire()

◆ id() [1/2]

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

Definition at line 173 of file timebuf.hh.

References gem5::TimeBuffer< T >::_id.

Referenced by gem5::TimeBuffer< T >::id().

◆ id() [2/2]

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

Definition at line 168 of file timebuf.hh.

References gem5::TimeBuffer< T >::_id, and gem5::TimeBuffer< T >::id().

◆ operator[]() [1/2]

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

◆ operator[]() [2/2]

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

◆ 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.

References gem5::TimeBuffer< T >::wire.

Friends And Related Symbol Documentation

◆ wire

template<class T >
friend class wire
friend

Definition at line 58 of file timebuf.hh.

Referenced by gem5::TimeBuffer< T >::getWire(), and gem5::TimeBuffer< T >::zero().

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

◆ past

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

Definition at line 43 of file timebuf.hh.

Referenced by gem5::TimeBuffer< T >::TimeBuffer(), and gem5::TimeBuffer< T >::valid().

◆ size


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

Generated on Tue Jun 18 2024 16:24:15 for gem5 by doxygen 1.11.0