Logo SoCRocket

Transaction-Level Modeling Framework for Space Applications

Public Member Functions | Protected Attributes | List of all members
sr_signal::signal_if< TYPE > Class Template Reference

#include <sr_signal_ifs.h>

Inheritance diagram for sr_signal::signal_if< TYPE >:
Collaboration diagram for sr_signal::signal_if< TYPE >:

Public Member Functions

virtual ~signal_if ()
 Virtual destructor. More...
 
virtual const TYPE & read ()
 Read the current signal value. More...
 
 operator TYPE () const
 Call operator to get the current signal value. More...
 
bool operator== (const TYPE &t) const
 Comparing the current signal value with a variable of the same type TYPE. More...
 

Protected Attributes

TYPE m_value
 The signal value. More...
 

Detailed Description

template<class TYPE>
class sr_signal::signal_if< TYPE >

Main signal interface. This interface implements the basic read functionality of a signal value This is needed for input and output signals.

Constructor & Destructor Documentation

template<class TYPE>
virtual sr_signal::signal_if< TYPE >::~signal_if ( )
inlinevirtual

Virtual destructor.

Member Function Documentation

template<class TYPE>
sr_signal::signal_if< TYPE >::operator TYPE ( ) const
inline

Call operator to get the current signal value.

References sr_signal::signal_if< TYPE >::m_value.

template<class TYPE>
bool sr_signal::signal_if< TYPE >::operator== ( const TYPE &  t) const
inline

Comparing the current signal value with a variable of the same type TYPE.

template<class TYPE>
virtual const TYPE& sr_signal::signal_if< TYPE >::read ( )
inlinevirtual

Member Data Documentation

template<class TYPE>
TYPE sr_signal::signal_if< TYPE >::m_value
protected

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