gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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

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

Definition at line 140 of file timebuf.hh.

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

Definition at line 156 of file timebuf.hh.

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

Definition at line 161 of file timebuf.hh.

Member Function Documentation

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

Definition at line 211 of file timebuf.hh.

template<class T>
void TimeBuffer< T >::advance ( )
inline
template<class T>
int TimeBuffer< T >::calculateVectorIndex ( int  idx) const
inlineprotected
template<class T>
unsigned TimeBuffer< T >::getSize ( )
inline

Definition at line 244 of file timebuf.hh.

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

Definition at line 168 of file timebuf.hh.

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

Definition at line 173 of file timebuf.hh.

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

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

Definition at line 218 of file timebuf.hh.

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

Definition at line 225 of file timebuf.hh.

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

Definition at line 239 of file timebuf.hh.

Friends And Related Function Documentation

template<class T>
friend class wire
friend

Member Data Documentation

template<class T>
int TimeBuffer< T >::_id
protected
template<class T>
unsigned TimeBuffer< T >::base
protected
template<class T>
char* TimeBuffer< T >::data
protected
template<class T>
int TimeBuffer< T >::future
protected
template<class T>
std::vector<char *> TimeBuffer< T >::index
protected
template<class T>
int TimeBuffer< T >::past
protected
template<class T>
unsigned TimeBuffer< T >::size
protected

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

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