29#include "Configuration.h"
30#include "Identified.h"
98 static dclspc std::unique_ptr<PulseCounter>
Make() noexcept;
Namespace of all the trax track libraries classes and methods.
Definition Collection.h:17
A jack a plug can get connected with.
Definition Jack.h:83
Interface for locking and unlocking an object.
Definition LogicElements.h:45
virtual void Lock()=0
Locks the object for further input.
virtual Jack & JackOnUnlock()=0
Jack that pulses on unlock.
virtual MultiPlug & PlugToLock()=0
virtual Jack & JackOnLockChange()=0
Jack that pulses if the lock state changes.
virtual MultiPlug & PlugToLockToggle()=0
Plug to toggle the lock state by pulse.
virtual MultiPlug & PlugToUnlock()=0
virtual void ToggleLock()=0
Toggles the lock state.
virtual Jack & JackOnLock()=0
virtual void Unlock()=0
Unlocks the object to execute input again.
virtual bool IsLocked() const =0
A MultiPlug provides a variable number of actual Plugs to one input slot.
Definition Plug.h:307
A counter can be incremented or decremented by pulses. It will itself issue a pulse every time a cert...
Definition LogicElements.h:96
static dclspc std::unique_ptr< PulseCounter > Make() noexcept
Makes a PulseCounter object.
virtual void Counter(int counter)=0
Sets the counter to a specific value.
virtual Jack & JackOnReachThreshold()=0
If the counter reaches the threshold from either side the counter triggers a pulse in this Jack.
virtual void CountDown() noexcept=0
Decrements the counter by 1.
virtual void UnregisterSockets(SocketRegistry ®istry)=0
Removes all references to Plugs and Jacks from the module.
virtual Jack & JackOnCountUp()=0
If the counter gets counted up it triggers a pulse in this jack.
virtual MultiPlug & PlugToReset()=0
Plug whose pulses reset the counter to 0.
virtual Jack & JackOnLeaveThreshold()=0
If the counter leaves the threshold to either side the counter triggers a pulse in this Jack.
virtual void Reset() noexcept=0
Resets the counter to 0.
virtual void CountUp() noexcept=0
Increments the counter by 1.
virtual Jack & JackOnCountDown()=0
If the counter gets counted down it triggers a pulse in this jack.
virtual MultiPlug & PlugToCountDown()=0
Plug whose pulses decrement the counter by 1.
virtual const char * TypeName() const noexcept=0
virtual void RegisterSockets(SocketRegistry ®istry)=0
Registers all the Plugs with the module and supplies the Jacks with plug ids for connecting.
virtual MultiPlug & PlugToCountUp()=0
Plug whose pulses increment the counter by 1.
virtual void Threshold(int threshold)=0
Sets the threshold to a specific value.
Interface for a registry that reconnects Plugs and Jacks according to their IDs.
Definition SocketRegistry.h:40