EEROS  0.4.1.0
API for the EEROS Real-Time Robotics Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
eeros::control::Switch< N, T > Class Template Reference

#include <Switch.hpp>

Inheritance diagram for eeros::control::Switch< N, T >:
Collaboration diagram for eeros::control::Switch< N, T >:

Public Member Functions

 Switch (uint8_t initInputIndex)
 
virtual void run ()
 
virtual Input< T > & getIn (uint8_t index)
 
virtual Output< T > & getOut ()
 
virtual bool switchToInput (uint8_t index)
 
virtual uint8_t getCurrentInput () const
 
- Public Member Functions inherited from eeros::control::Block
virtual void setName (std::string name)
 
virtual std::string getName ()
 
- Public Member Functions inherited from eeros::Runnable
virtual ~Runnable ()
 

Protected Attributes

Input< T > in [N]
 
Output< T > out
 
uint8_t currentInput
 

Constructor & Destructor Documentation

template<uint8_t N = 2, typename T = double>
eeros::control::Switch< N, T >::Switch ( uint8_t  initInputIndex)
inline

Member Function Documentation

template<uint8_t N = 2, typename T = double>
virtual uint8_t eeros::control::Switch< N, T >::getCurrentInput ( ) const
inlinevirtual
template<uint8_t N = 2, typename T = double>
virtual Input<T>& eeros::control::Switch< N, T >::getIn ( uint8_t  index)
inlinevirtual
template<uint8_t N = 2, typename T = double>
virtual Output<T>& eeros::control::Switch< N, T >::getOut ( )
inlinevirtual
template<uint8_t N = 2, typename T = double>
virtual void eeros::control::Switch< N, T >::run ( )
inlinevirtual

Implements eeros::Runnable.

template<uint8_t N = 2, typename T = double>
virtual bool eeros::control::Switch< N, T >::switchToInput ( uint8_t  index)
inlinevirtual

Member Data Documentation

template<uint8_t N = 2, typename T = double>
uint8_t eeros::control::Switch< N, T >::currentInput
protected
template<uint8_t N = 2, typename T = double>
Input<T> eeros::control::Switch< N, T >::in[N]
protected
template<uint8_t N = 2, typename T = double>
Output<T> eeros::control::Switch< N, T >::out
protected

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