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

using this_type

Public Member Functions

const bool & operator* ()
 sc_variable (const std::string &name, const bool &value)
 sc_variable (sc_variable< bool > const &)=delete
 sc_variable (sc_variable< bool > &&)=delete
sc_variable & operator= (sc_variable< bool > &&other)=delete
std::string to_string () const override
 retrieve the textual representation of the value
bool get () const
 operator bool () const
sc_variable & operator= (const bool other)
sc_variable & operator= (const sc_variable< 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
const bool * operator-> ()
 operator bool () const
 cast operator
bool operator> (bool other) const
bool operator< (bool other) const
bool operator>= (bool other) const
bool operator<= (bool other) const
sc_variable & operator++ ()
 overloaded prefix ++ operator
sc_variable & operator-- ()
 overloaded prefix – operator
bool operator+= (const bool other)
bool operator-= (const bool other)
bool operator*= (const bool other)
bool operator/= (const bool other)
bool operator+ (const bool other) const
bool operator- (const bool other) const
bool operator/ (const bool other) const
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

Detailed Description

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

Definition at line 307 of file sc_variable.h.

Member Typedef Documentation

◆ this_type

using scc::sc_variable< bool >::this_type

Definition at line 88 of file sc_variable.h.

Constructor & Destructor Documentation

◆ sc_variable()

scc::sc_variable< bool >::sc_variable ( const std::string & name,
const bool & value )
inline

Definition at line 309 of file sc_variable.h.

Member Function Documentation

◆ get()

bool scc::sc_variable< bool >::get ( ) const
inline

Definition at line 323 of file sc_variable.h.

◆ operator bool() [1/2]

scc::sc_variable< bool >::operator bool ( ) const
inline

Definition at line 324 of file sc_variable.h.

◆ operator bool() [2/2]

scc::sc_variable< bool >::operator bool ( ) const
inline

cast operator

Definition at line 147 of file sc_variable.h.

◆ operator!=()

bool scc::sc_variable< bool >::operator!= ( bool other) const
inline

Definition at line 338 of file sc_variable.h.

◆ operator*()

const bool & scc::sc_variable< bool >::operator* ( )
inline

Definition at line 308 of file sc_variable.h.

◆ operator*=()

bool scc::sc_variable< bool >::operator*= ( const bool other)
inline

Definition at line 244 of file sc_variable.h.

◆ operator+()

bool scc::sc_variable< bool >::operator+ ( const bool other) const
inline

Definition at line 256 of file sc_variable.h.

◆ operator++()

sc_variable & scc::sc_variable< bool >::operator++ ( )
inline

overloaded prefix ++ operator

Definition at line 199 of file sc_variable.h.

◆ operator+=()

bool scc::sc_variable< bool >::operator+= ( const bool other)
inline

Definition at line 232 of file sc_variable.h.

◆ operator-()

bool scc::sc_variable< bool >::operator- ( const bool other) const
inline

Definition at line 257 of file sc_variable.h.

◆ operator--()

sc_variable & scc::sc_variable< bool >::operator-- ( )
inline

overloaded prefix – operator

Definition at line 215 of file sc_variable.h.

◆ operator-=()

bool scc::sc_variable< bool >::operator-= ( const bool other)
inline

Definition at line 238 of file sc_variable.h.

◆ operator->()

const bool * scc::sc_variable< bool >::operator-> ( )
inline

Definition at line 102 of file sc_variable.h.

◆ operator/()

bool scc::sc_variable< bool >::operator/ ( const bool other) const
inline

Definition at line 259 of file sc_variable.h.

◆ operator/=()

bool scc::sc_variable< bool >::operator/= ( const bool other)
inline

Definition at line 250 of file sc_variable.h.

◆ operator<()

bool scc::sc_variable< bool >::operator< ( bool other) const
inline

less than comparison

Parameters
other
Returns

Definition at line 185 of file sc_variable.h.

◆ operator<=()

bool scc::sc_variable< bool >::operator<= ( bool other) const
inline

less than or equal comparison

Parameters
other
Returns

Definition at line 197 of file sc_variable.h.

◆ operator=() [1/2]

sc_variable & scc::sc_variable< bool >::operator= ( const bool other)
inline

Definition at line 325 of file sc_variable.h.

◆ operator=() [2/2]

sc_variable & scc::sc_variable< bool >::operator= ( const sc_variable< bool > & other)
inline

Definition at line 331 of file sc_variable.h.

◆ operator==()

bool scc::sc_variable< bool >::operator== ( bool other) const
inline

Definition at line 337 of file sc_variable.h.

◆ operator>()

bool scc::sc_variable< bool >::operator> ( bool other) const
inline

greater than comparison

Parameters
other
Returns

Definition at line 179 of file sc_variable.h.

◆ operator>=()

bool scc::sc_variable< bool >::operator>= ( bool other) const
inline

greater than or equal comparison

Parameters
other
Returns

Definition at line 191 of file sc_variable.h.

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

◆ trace() [1/2]

void scc::sc_variable< bool >::trace ( observer * obs) const
inlineoverridevirtual

Implements scc::sc_variable_b.

Definition at line 345 of file sc_variable.h.

◆ trace() [2/2]

void scc::sc_variable< bool >::trace ( sc_core::sc_trace_file * tf) const
inlineoverride

Definition at line 339 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