state_t Class Reference

yasimavr: Wire::state_t Class Reference
yasimavr
Loading...
Searching...
No Matches
Wire::state_t Class Reference

#include <sim_wire.h>

Public Member Functions

 state_t ()
 
constexpr state_t (StateEnum s, double v=0.0)
 
 state_t (const state_t &other)=default
 
bool is_digital () const
 
bool is_driven () const
 
bool digital_value () const
 
std::string to_string () const
 
bool operator== (StateEnum s) const
 
bool operator!= (StateEnum s) const
 
bool operator== (const state_t &s) const
 
bool operator!= (const state_t &s) const
 
StateEnum value () const
 
double level () const
 
state_toperator= (const state_t &other)=default
 

Constructor & Destructor Documentation

◆ state_t() [1/3]

Wire::state_t::state_t ( )
inline

◆ state_t() [2/3]

constexpr Wire::state_t::state_t ( StateEnum  s,
double  v = 0.0 
)
inlineconstexpr

◆ state_t() [3/3]

Wire::state_t::state_t ( const state_t other)
default

Member Function Documentation

◆ digital_value()

bool Wire::state_t::digital_value ( ) const
inline

◆ is_digital()

bool Wire::state_t::is_digital ( ) const
inline

◆ is_driven()

bool Wire::state_t::is_driven ( ) const
inline

◆ level()

double Wire::state_t::level ( ) const
inline

◆ operator!=() [1/2]

bool Wire::state_t::operator!= ( const state_t s) const
inline

◆ operator!=() [2/2]

bool Wire::state_t::operator!= ( StateEnum  s) const
inline

◆ operator=()

state_t & Wire::state_t::operator= ( const state_t other)
default

◆ operator==() [1/2]

bool Wire::state_t::operator== ( const state_t s) const
inline

◆ operator==() [2/2]

bool Wire::state_t::operator== ( StateEnum  s) const
inline

◆ to_string()

YASIMAVR_USING_NAMESPACE std::string Wire::state_t::to_string ( ) const

Returns a string representation of the wire state

◆ value()

StateEnum Wire::state_t::value ( ) const
inline

The documentation for this class was generated from the following files: