78class sc_without_context;
79template <
class T>
class sc_global;
80template <
class T>
class sc_context;
117 const T* m_value_ptr;
146 void*
operator new( std::size_t );
157 const T&
value()
const;
163 const T*& m_def_value_ptr;
164 const T* m_old_value_ptr;
184 , m_proc( &m_instance )
192sc_global<T>::update()
197 const T* vp = m_map[p];
200 vp =
new T( sc_without_context() );
201 m_map.insert( p, vp );
214 if( m_instance == 0 )
242 m_def_value_ptr(
sc_global<T>::instance()->value_ptr() ),
247 m_old_value_ptr = m_def_value_ptr;
248 m_def_value_ptr = &m_value;
256 if( m_old_value_ptr != 0 )
258 m_def_value_ptr = m_old_value_ptr;
269 if( m_old_value_ptr == 0 )
271 m_old_value_ptr = m_def_value_ptr;
272 m_def_value_ptr = &m_value;
285 if( m_old_value_ptr != 0 )
287 m_def_value_ptr = m_old_value_ptr;
#define SC_REPORT_ERROR(msg_type, msg)
const char SC_ID_CONTEXT_BEGIN_FAILED_[]
SC_API unsigned default_ptr_hash_fn(const void *)
const char SC_ID_CONTEXT_END_FAILED_[]
sc_process_b * sc_get_current_process_b()
static sc_global< T > * instance()
static const T & default_value()