RCKit
Inverter.h
1
// Inverter.h
2
//
3
// Setter Class that inverts its input value and sends it to the output
4
/// \author Mike McCauley (mikem@airspayce.com)
5
///
6
// Copyright (C) 2010 Mike McCauley
7
// $Id: Inverter.h,v 1.3 2018/09/17 23:09:57 mikem Exp mikem $
8
9
#ifndef Inverter_h
10
#define Inverter_h
11
12
#include "Setter.h"
13
14
/////////////////////////////////////////////////////////////////////
15
/// \class Inverter Inverter.h <Inverter.h>
16
/// \brief Setter object that inverts its value.
17
///
18
/// Inverter inverts its input value and passes it the resulting value to the
19
/// next Setter (the target) in the chain.
20
class
Inverter
:
public
Setter
21
{
22
public
:
23
/// Input the value to be inverted
24
/// \param[in] value The input value
25
virtual
void
input
(
int
value);
26
27
protected
:
28
29
private
:
30
};
31
32
#endif
Setter::input
virtual void input(int value)
This is where incoming values are set.
Definition:
Setter.cpp:26
Inverter::input
virtual void input(int value)
Definition:
Inverter.cpp:12
Inverter
Setter object that inverts its value.
Definition:
Inverter.h:20
Setter
Virtual base class for classes that receive a value, maybe transform it and then do something with it...
Definition:
Setter.h:25
Generated by
1.8.17