scc
2022.4.0
SystemC components library
|
the sc_ref_variable for a particular plain data type. This marks an existing C++ variable as discoverable via the sc_object tree. Whenever possible sc_variable should be used as this does not support value change callback. More...
#include <sc_variable.h>
Public Member Functions | |
const T & | operator* () |
get a reference to the wrapped value More... | |
sc_ref_variable (const std::string &name, const T &value) | |
std::string | to_string () const override |
create a textual representation of the wrapped value More... | |
void | trace (sc_core::sc_trace_file *tf) const override |
register the value with the SystemC trace implementation More... | |
void | trace (observer *obs) const override |
Public Member Functions inherited from scc::sc_variable_b | |
sc_variable_b (const char *name) | |
const char * | kind () const |
get the kind of this sc_object More... | |
Public Attributes | |
const T & | value |
the wrapped value | |
the sc_ref_variable for a particular plain data type. This marks an existing C++ variable as discoverable via the sc_object tree. Whenever possible sc_variable should be used as this does not support value change callback.
T | the data type of the wrapped value |
Definition at line 419 of file sc_variable.h.
|
inline |
|
inlineoverridevirtual |
create a textual representation of the wrapped value
Reimplemented from scc::sc_variable_b.
Definition at line 446 of file sc_variable.h.
|
inlineoverride |
register the value with the SystemC trace implementation
tf |
Definition at line 457 of file sc_variable.h.