gem5 [DEVELOP-FOR-25.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

Definition at line 220 of file sc_context.hh.

References m_def_value_ptr, m_old_value_ptr, m_value, and sc_dt::SC_NOW.

◆ ~sc_context()

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

Definition at line 232 of file sc_context.hh.

References m_def_value_ptr, and m_old_value_ptr.

Member Function Documentation

◆ begin()

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

◆ default_value()

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

Definition at line 268 of file sc_context.hh.

References sc_dt::sc_global< T >::instance().

◆ end()

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

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

References m_value.

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 begin(), end(), sc_context(), and ~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 begin(), end(), sc_context(), and ~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 begin(), sc_context(), and value().


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

Generated on Mon May 26 2025 09:20:43 for gem5 by doxygen 1.13.2