42 template<
typename T, sc_writer_policy POL = SC_DEFAULT_WRITER_POLICY >
65 sc_buffer(
const char* name_,
const T& initial_value_ )
72 virtual void write(
const T& );
78 {
write( a );
return *
this; }
86 virtual const char*
kind()
const
87 {
return "sc_buffer"; }
104 template<
typename T, sc_writer_policy POL >
109 if( !base_type::policy_type::check_write(
this,
true) )
112 this->m_new_val = value_;
113 this->request_update();
117 template<
typename T, sc_writer_policy POL >
122 base_type::policy_type::update();
123 base_type::do_update();
sc_signal< T, POL > base_type
virtual const char * kind() const
sc_buffer< T, POL > this_type
this_type & operator=(const T &a)
const char * sc_gen_unique_name(const char *, bool preserve_first)
virtual const T & read() const =0
sc_buffer(const char *name_, const T &initial_value_)
virtual void write(const T &)
virtual const T & read() const
sc_buffer(const char *name_)