44template<
typename T, sc_writer_policy POL = SC_DEFAULT_WRITER_POLICY >
75 virtual void write(
const T& );
80 virtual const char*
kind()
const
81 {
return "sc_buffer"; }
85 using base_type::operator=;
104template<
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();
117template<
typename T, sc_writer_policy POL >
122 base_type::policy_type::update();
123 base_type::do_update();
SC_API const char * sc_gen_unique_name(const char *, bool preserve_first)
virtual const char * kind() const
sc_buffer< T, POL > this_type
virtual void write(const T &)
this_type & operator=(const this_type &a)
sc_buffer(const char *name_)
sc_signal< T, POL > base_type
sc_buffer(const char *name_, const value_type &initial_value_)
this_type & operator=(const this_type &a)