My Project
|
#include <Delay.h>
Public Member Functions | |
Delay () | |
virtual | ~Delay () |
void | setDelayInMeters (double delayInMeters) |
void | setDelayRateInMeters (double delayRateInMeters) |
void | setDelayInNanoSeconds (double delayInNanoSec) |
void | setDelayRateInNanoSeconds (double delayRateInNanoSec) |
double | meters () |
double | metersPerSecond () |
double | seconds () |
double | nanoSeconds () |
double | nanoSecondsPerSecond () |
double | secondsPerSecond () |
Delay | operator+ (Delay &delay) |
Delay & | operator+= (Delay &delay) |
Delay & | operator+= (Delay delay) |
Delay | operator- (Delay &delay) |
Delay & | operator-= (Delay &delay) |
Delay & | operator-= (Delay delay) |
void | flipDelay () |
void | flipRate () |
Friends | |
std::ostream & | operator<< (std::ostream &os, Delay delay) |
Trivial class for handling delays
Delay::Delay | ( | ) |
Constructor.
....................................................................... Constructor.
|
virtual |
Destructor.
....................................................................... Destructor.
|
inline |
Get the delay, in meters
|
inline |
Get the delay rate, in meters/sec
|
inline |
Get the delay, in nanoseconds
|
inline |
Get the delay rate, in nanoseconds/sec
Add two Delays
....................................................................... Addition operator for Delay.
....................................................................... Increment operator for Delay.
....................................................................... Increment operator for Delay.
Subtract two Delays
....................................................................... Subtraction operator for Delay.
....................................................................... Decrement operator for Delay.
....................................................................... Decrement operator for Delay.
|
inline |
Get the delay, in seconds
|
inline |
Get the delay rate, in seconds/sec
|
inline |
Set the delay, in meters
|
inline |
Set the delay, in nanoSeconds
|
inline |
Set the delay rate, in meters/second
|
inline |
Set the delay rate, in nanoSeconds/second