This class implements a signal array.
More...
#include <Signal.h>
|
| | Signals () |
| | Creates an empty signal array.
|
| |
| | Signals (const unsigned int size) |
| | Creates a new signal array object by the number of requested signals.
|
| |
| | ~Signals () |
| | Destructs a signal array.
|
| |
| void | wait () const |
| | Returns after all signals has been pulsed.
|
| |
| void | waitSubset (const unsigned int signalsCount) const |
| | Returns after a subset of signals has been pulsed.
|
| |
| bool | wait (const unsigned int time) const |
| | Returns after all signals has been pulsed or the specified time has been elapsed.
|
| |
| bool | waitSubset (const unsigned int signalsCount, const unsigned int time) |
| | Returns after a subset of signals has been pulsed or the specified time has been elapsed.
|
| |
| bool | pulse () |
| | Pulses all signals.
|
| |
| bool | reset () |
| | Resets all the signal.
|
| |
| unsigned int | size () const |
| | Returns the number of signals.
|
| |
| void | setSize (const unsigned int size) |
| | Changes the size of the signal array.
|
| |
| Signal & | operator[] (const unsigned int index) const |
| | Returns one specific signal of this array.
|
| |
This class implements a signal array.
◆ Signals() [1/3]
| Ocean::Signals::Signals |
( |
| ) |
|
Creates an empty signal array.
◆ Signals() [2/3]
| Ocean::Signals::Signals |
( |
const unsigned int |
size | ) |
|
|
explicit |
Creates a new signal array object by the number of requested signals.
- Parameters
-
| size | Number of requested signals |
◆ ~Signals()
| Ocean::Signals::~Signals |
( |
| ) |
|
Destructs a signal array.
◆ Signals() [3/3]
| Ocean::Signals::Signals |
( |
const Signals & |
otherSignals | ) |
|
|
privatedelete |
Disabled copy constructor.
- Parameters
-
| otherSignals | Object which would be copied |
◆ operator=()
Disabled copy operator.
- Parameters
-
| otherSignals | Object which would be copied |
- Returns
- Reference to this object
◆ operator[]()
| Signal & Ocean::Signals::operator[] |
( |
const unsigned int |
index | ) |
const |
Returns one specific signal of this array.
- Parameters
-
- Returns
- Specified signal
◆ pulse()
| bool Ocean::Signals::pulse |
( |
| ) |
|
Pulses all signals.
- Returns
- True, if succeeded
◆ reset()
| bool Ocean::Signals::reset |
( |
| ) |
|
Resets all the signal.
- Returns
- True, if succeeded
◆ setSize()
| void Ocean::Signals::setSize |
( |
const unsigned int |
size | ) |
|
Changes the size of the signal array.
All existing signals will be released before the new array is created.
- Parameters
-
| size | New signal array size |
◆ size()
| unsigned int Ocean::Signals::size |
( |
| ) |
const |
|
inline |
Returns the number of signals.
- Returns
- Signal number
◆ wait() [1/2]
| void Ocean::Signals::wait |
( |
| ) |
const |
Returns after all signals has been pulsed.
◆ wait() [2/2]
| bool Ocean::Signals::wait |
( |
const unsigned int |
time | ) |
const |
Returns after all signals has been pulsed or the specified time has been elapsed.
- Parameters
-
| time | Maximal wait time in ms |
- Returns
- True, if all signals has been pulsed
◆ waitSubset() [1/2]
| void Ocean::Signals::waitSubset |
( |
const unsigned int |
signalsCount | ) |
const |
Returns after a subset of signals has been pulsed.
- Parameters
-
| signalsCount | Number of the first signals to wait for |
◆ waitSubset() [2/2]
| bool Ocean::Signals::waitSubset |
( |
const unsigned int |
signalsCount, |
|
|
const unsigned int |
time |
|
) |
| |
Returns after a subset of signals has been pulsed or the specified time has been elapsed.
- Parameters
-
| signalsCount | Number of the first signals to wait for |
| time | Maximal wait time in ms |
- Returns
- True, if all specified signals has been pulsed
◆ signalObjects
| Signal* Ocean::Signals::signalObjects |
|
private |
◆ signalsSize
| unsigned int Ocean::Signals::signalsSize |
|
private |
Number of signals stored in the array.
The documentation for this class was generated from the following file: