scc  2022.4.0
SystemC components library
scc::sc_ref_variable_masked< T > Struct Template Reference

the sc_variable for a particular plain data type with limited bit width More...

#include <sc_variable.h>

Inheritance diagram for scc::sc_ref_variable_masked< T >:
Collaboration diagram for scc::sc_ref_variable_masked< T >:

Public Member Functions

 sc_ref_variable_masked (const std::string &name, const T &value, int width)
 
std::string to_string () const override
 retrieve the textual representation of the value More...
 
void trace (observer *obs) const override
 
void trace (sc_core::sc_trace_file *tf) 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
 
const T mask
 

Detailed Description

template<typename T>
struct scc::sc_ref_variable_masked< T >

the sc_variable for a particular plain data type with limited bit width

Template Parameters
Tthe data type of the wrapped value

Definition at line 483 of file sc_variable.h.

Member Function Documentation

◆ to_string()

template<typename T >
std::string scc::sc_ref_variable_masked< T >::to_string ( ) const
inlineoverridevirtual

retrieve the textual representation of the value

Returns

Reimplemented from scc::sc_variable_b.

Definition at line 495 of file sc_variable.h.


The documentation for this struct was generated from the following file: