scc 2025.09
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
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)
 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

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 527 of file sc_variable.h.

Constructor & Destructor Documentation

◆ sc_ref_variable_masked()

template<typename T>
scc::sc_ref_variable_masked< T >::sc_ref_variable_masked ( const std::string & name,
const T & value,
int width )
inline

Definition at line 532 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 539 of file sc_variable.h.

◆ trace() [1/2]

template<typename T>
void scc::sc_ref_variable_masked< T >::trace ( observer * obs) const
inlineoverridevirtual

Implements scc::sc_variable_b.

Definition at line 545 of file sc_variable.h.

◆ trace() [2/2]

template<typename T>
void scc::sc_ref_variable_masked< T >::trace ( sc_core::sc_trace_file * tf) const
inlineoverride

Definition at line 547 of file sc_variable.h.

Member Data Documentation

◆ mask

template<typename T>
const T scc::sc_ref_variable_masked< T >::mask

Definition at line 530 of file sc_variable.h.

◆ value

template<typename T>
const T& scc::sc_ref_variable_masked< T >::value

Definition at line 528 of file sc_variable.h.


The documentation for this struct was generated from the following file:
  • /home/eyck/Projects/MINRES/SystemC-Components/src/sysc/scc/sc_variable.h