scc  2022.4.0
SystemC components library
scc::sc_variable< bool > Struct Reference

#include <sc_variable.h>

Inheritance diagram for scc::sc_variable< bool >:
Collaboration diagram for scc::sc_variable< bool >:

Classes

struct  creator
 

Public Member Functions

const bool & operator* ()
 
 sc_variable (const std::string &name, const bool &value)
 
std::string to_string () const override
 retrieve the textual representation of the value More...
 
bool get () const
 
 operator bool () const
 
sc_variableoperator= (const bool other)
 
bool operator== (bool other) const
 
bool operator!= (bool other) const
 
void trace (sc_core::sc_trace_file *tf) const override
 
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...
 

Static Public Member Functions

static scc::sc_variable< bool > create (const char *n, size_t i, bool default_val)
 

Detailed Description

specialization for bool as the cast operator for bool would be ambigous

Definition at line 287 of file sc_variable.h.

Member Function Documentation

◆ to_string()

std::string scc::sc_variable< bool >::to_string ( ) const
inlineoverridevirtual

retrieve the textual representation of the value

Returns

Reimplemented from scc::sc_variable_b.

Definition at line 294 of file sc_variable.h.


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