gem5 v24.0.0.0
Loading...
Searching...
No Matches
sc_dt::sc_context< T > Class Template Reference

#include <sc_context.hh>

Public Member Functions

 sc_context (const T &, sc_context_begin=SC_NOW)
 
 ~sc_context ()
 
void begin ()
 
void end ()
 
const T & value () const
 

Static Public Member Functions

static const T & default_value ()
 

Private Member Functions

 sc_context (const sc_context< T > &)
 
void * operator new (std::size_t)
 
sc_contextoperator= (const sc_context &)
 

Private Attributes

const T m_value
 
const T *& m_def_value_ptr
 
const T * m_old_value_ptr
 

Detailed Description

template<class T>
class sc_dt::sc_context< T >

Definition at line 132 of file sc_context.hh.

Constructor & Destructor Documentation

◆ sc_context() [1/2]

template<class T >
sc_dt::sc_context< T >::sc_context ( const sc_context< T > & )
private

◆ sc_context() [2/2]

template<class T >
sc_dt::sc_context< T >::sc_context ( const T & value_,
sc_context_begin begin_ = SC_NOW )
inlineexplicit

◆ ~sc_context()

template<class T >
sc_dt::sc_context< T >::~sc_context ( )
inline

Definition at line 232 of file sc_context.hh.

Member Function Documentation

◆ begin()

template<class T >
void sc_dt::sc_context< T >::begin ( )
inline

Definition at line 243 of file sc_context.hh.

References sc_core::SC_ID_CONTEXT_BEGIN_FAILED_, and SC_REPORT_ERROR.

◆ default_value()

◆ end()

template<class T >
void sc_dt::sc_context< T >::end ( )
inline

Definition at line 255 of file sc_context.hh.

References sc_core::SC_ID_CONTEXT_END_FAILED_, and SC_REPORT_ERROR.

◆ operator new()

template<class T >
void * sc_dt::sc_context< T >::operator new ( std::size_t )
private

◆ operator=()

template<class T >
sc_context & sc_dt::sc_context< T >::operator= ( const sc_context< T > & )
private

◆ value()

template<class T >
const T & sc_dt::sc_context< T >::value ( ) const
inline

Definition at line 275 of file sc_context.hh.

Member Data Documentation

◆ m_def_value_ptr

template<class T >
const T*& sc_dt::sc_context< T >::m_def_value_ptr
private

Definition at line 152 of file sc_context.hh.

Referenced by sc_dt::sc_context< T >::sc_context().

◆ m_old_value_ptr

template<class T >
const T* sc_dt::sc_context< T >::m_old_value_ptr
private

Definition at line 153 of file sc_context.hh.

Referenced by sc_dt::sc_context< T >::sc_context().

◆ m_value

template<class T >
const T sc_dt::sc_context< T >::m_value
private

Definition at line 151 of file sc_context.hh.

Referenced by sc_dt::sc_context< T >::sc_context().


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

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