CPP-TOOLBOX
Loading...
Searching...
No Matches
TemporalBinarySignal Class Reference

#include <temporal_binary_signal.hpp>

Public Member Functions

 TemporalBinarySignal ()
 
 TemporalBinarySignal (const TemporalBinarySignal &other)
 
 TemporalBinarySignal (TemporalBinarySignal &&other) noexcept
 
 ~TemporalBinarySignal ()
 
TemporalBinarySignaloperator= (const TemporalBinarySignal &other)
 
TemporalBinarySignaloperator= (TemporalBinarySignal &&other) noexcept
 
void add_to_active_signals ()
 
void remove_from_active_signals ()
 
void display_num_active_signals ()
 
void set_signal (bool value)
 
void set_on ()
 
void set_off ()
 
void toggle_state ()
 
void process ()
 
State get_current_state () const
 
std::string get_current_state_string ()
 
State get_next_state () const
 
bool is_on () const
 
bool is_off () const
 
bool is_just_on () const
 
bool is_just_off () const
 
bool has_just_changed () const
 
bool next_is_on () const
 
bool next_is_off () const
 
bool next_is_just_on () const
 
bool next_is_just_off () const
 
bool next_has_just_changed () const
 
bool is_on (State state) const
 
bool is_off (State state) const
 
bool is_just_on (State state) const
 
bool is_just_off (State state) const
 
bool is_double_tapped ()
 

Static Public Member Functions

static void process_all ()
 

Public Attributes

bool logging_enabled = false
 

Constructor & Destructor Documentation

◆ TemporalBinarySignal() [1/3]

TemporalBinarySignal::TemporalBinarySignal ( )

◆ TemporalBinarySignal() [2/3]

TemporalBinarySignal::TemporalBinarySignal ( const TemporalBinarySignal & other)

◆ TemporalBinarySignal() [3/3]

TemporalBinarySignal::TemporalBinarySignal ( TemporalBinarySignal && other)
noexcept

◆ ~TemporalBinarySignal()

TemporalBinarySignal::~TemporalBinarySignal ( )

Member Function Documentation

◆ add_to_active_signals()

void TemporalBinarySignal::add_to_active_signals ( )

◆ display_num_active_signals()

void TemporalBinarySignal::display_num_active_signals ( )

◆ get_current_state()

State TemporalBinarySignal::get_current_state ( ) const

◆ get_current_state_string()

std::string TemporalBinarySignal::get_current_state_string ( )

◆ get_next_state()

State TemporalBinarySignal::get_next_state ( ) const

◆ has_just_changed()

bool TemporalBinarySignal::has_just_changed ( ) const

◆ is_double_tapped()

bool TemporalBinarySignal::is_double_tapped ( )

◆ is_just_off() [1/2]

bool TemporalBinarySignal::is_just_off ( ) const

◆ is_just_off() [2/2]

bool TemporalBinarySignal::is_just_off ( State state) const

◆ is_just_on() [1/2]

bool TemporalBinarySignal::is_just_on ( ) const

◆ is_just_on() [2/2]

bool TemporalBinarySignal::is_just_on ( State state) const

◆ is_off() [1/2]

bool TemporalBinarySignal::is_off ( ) const

◆ is_off() [2/2]

bool TemporalBinarySignal::is_off ( State state) const

◆ is_on() [1/2]

bool TemporalBinarySignal::is_on ( ) const

◆ is_on() [2/2]

bool TemporalBinarySignal::is_on ( State state) const

◆ next_has_just_changed()

bool TemporalBinarySignal::next_has_just_changed ( ) const

◆ next_is_just_off()

bool TemporalBinarySignal::next_is_just_off ( ) const

◆ next_is_just_on()

bool TemporalBinarySignal::next_is_just_on ( ) const

◆ next_is_off()

bool TemporalBinarySignal::next_is_off ( ) const

◆ next_is_on()

bool TemporalBinarySignal::next_is_on ( ) const

◆ operator=() [1/2]

TemporalBinarySignal & TemporalBinarySignal::operator= ( const TemporalBinarySignal & other)

◆ operator=() [2/2]

TemporalBinarySignal & TemporalBinarySignal::operator= ( TemporalBinarySignal && other)
noexcept

◆ process()

void TemporalBinarySignal::process ( )

◆ process_all()

void TemporalBinarySignal::process_all ( )
static

◆ remove_from_active_signals()

void TemporalBinarySignal::remove_from_active_signals ( )

◆ set_off()

void TemporalBinarySignal::set_off ( )

◆ set_on()

void TemporalBinarySignal::set_on ( )

◆ set_signal()

void TemporalBinarySignal::set_signal ( bool value)

◆ toggle_state()

void TemporalBinarySignal::toggle_state ( )

Member Data Documentation

◆ logging_enabled

bool TemporalBinarySignal::logging_enabled = false

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