|
scc 2025.09
SystemC components library
|
SystemC variable. More...
#include <sc_variable.h>


Classes | |
| struct | creator |
Public Types | |
| using | this_type = sc_variable<T> |
Public Member Functions | |
| const T & | operator* () |
| get a reference to the wrapped value | |
| const T * | operator-> () |
| sc_variable (const std::string &name, const T &value) | |
| constructor taking a name and a reference of the variable to be wrapped | |
| sc_variable (sc_variable< T > const &)=delete | |
| sc_variable (sc_variable< T > &&)=delete | |
| sc_variable & | operator= (sc_variable< T > &&other)=delete |
| std::string | to_string () const override |
| create a textual representation of the wrapped value | |
| T | get () const |
| value getter | |
| operator bool () const | |
| bool conversion operator | |
| operator T () const | |
| cast operator | |
| sc_variable & | operator= (T other) |
| sc_variable & | operator= (const sc_variable< T > &other) |
| bool | operator== (T other) const |
| bool | operator!= (T other) const |
| bool | operator> (T other) const |
| bool | operator< (T other) const |
| bool | operator>= (T other) const |
| bool | operator<= (T other) const |
| sc_variable & | operator++ () |
| overloaded prefix ++ operator | |
| T | operator++ (int) |
| overloaded postfix ++ operator | |
| sc_variable & | operator-- () |
| overloaded prefix – operator | |
| T | operator-- (int) |
| overloaded postfix – operator | |
| T | operator+= (const T other) |
| T | operator-= (const T other) |
| T | operator*= (const T other) |
| T | operator/= (const T other) |
| T | operator+ (const T other) const |
| T | operator- (const T other) const |
| T | operator* (const T other) const |
| T | operator/ (const T other) const |
| T | operator+ (const this_type &other) const |
| T | operator- (const this_type &other) const |
| T | operator* (const this_type &other) const |
| T | operator/ (const this_type &other) const |
| void | trace (sc_core::sc_trace_file *tf) const override |
| register the value with the SystemC trace implementation | |
| void | trace (observer *obs) const override |
| Public Member Functions inherited from scc::sc_variable_b | |
| sc_variable_b (const char *name) | |
| sc_variable_b (sc_variable_b const &)=delete | |
| sc_variable_b (sc_variable_b &&)=delete | |
| sc_variable_b & | operator= (const sc_variable_b &other)=delete |
| sc_variable_b & | operator= (sc_variable_b &&other)=delete |
| const char * | kind () const |
| get the kind of this sc_object | |
SystemC variable.
the sc_variable for a particular plain data type
This class makes plain and composite C++ datatype variables visible to the SystemC kernel by registering them in the SystemC object hierarchy.
| T | the data type of the wrapped value |
Definition at line 87 of file sc_variable.h.
| using scc::sc_variable< T >::this_type = sc_variable<T> |
Definition at line 88 of file sc_variable.h.
|
inline |
constructor taking a name and a reference of the variable to be wrapped
| name | the name |
| value | the variable reference to be wrapped |
Definition at line 110 of file sc_variable.h.
|
inline |
value getter
Definition at line 136 of file sc_variable.h.
|
inline |
bool conversion operator
Definition at line 141 of file sc_variable.h.
|
inline |
cast operator
Definition at line 147 of file sc_variable.h.
|
inline |
|
inline |
|
inline |
Definition at line 258 of file sc_variable.h.
|
inline |
Definition at line 262 of file sc_variable.h.
|
inline |
Definition at line 244 of file sc_variable.h.
|
inline |
Definition at line 256 of file sc_variable.h.
|
inline |
Definition at line 260 of file sc_variable.h.
|
inline |
overloaded prefix ++ operator
Definition at line 199 of file sc_variable.h.
|
inline |
overloaded postfix ++ operator
Definition at line 207 of file sc_variable.h.
|
inline |
Definition at line 232 of file sc_variable.h.
|
inline |
Definition at line 257 of file sc_variable.h.
|
inline |
Definition at line 261 of file sc_variable.h.
|
inline |
overloaded prefix – operator
Definition at line 215 of file sc_variable.h.
|
inline |
overloaded postfix – operator
Definition at line 223 of file sc_variable.h.
|
inline |
Definition at line 238 of file sc_variable.h.
|
inline |
Definition at line 102 of file sc_variable.h.
|
inline |
Definition at line 259 of file sc_variable.h.
|
inline |
Definition at line 263 of file sc_variable.h.
|
inline |
Definition at line 250 of file sc_variable.h.
|
inline |
|
inline |
less than or equal comparison
| other |
Definition at line 197 of file sc_variable.h.
|
inline |
Definition at line 156 of file sc_variable.h.
|
inline |
Definition at line 149 of file sc_variable.h.
|
inline |
|
inline |
|
inline |
greater than or equal comparison
| other |
Definition at line 191 of file sc_variable.h.
|
inlineoverridevirtual |
create a textual representation of the wrapped value
Reimplemented from scc::sc_variable_b.
Definition at line 127 of file sc_variable.h.
|
inlineoverridevirtual |
Implements scc::sc_variable_b.
Definition at line 277 of file sc_variable.h.
|
inlineoverride |
register the value with the SystemC trace implementation
| tf |
Definition at line 270 of file sc_variable.h.