|
stmm-games-doc
0.32.0
|
Device manager container class. More...

Public Member Functions | |
| shared_ptr< Device > | getDevice (int32_t nDeviceId) const noexcept override |
| Return the device with the given id. More... | |
| shared_ptr< Capability > | getCapability (const Capability::Class &oClass) const noexcept override |
| Get a device manager capability of a certain class. More... | |
| shared_ptr< Capability > | getCapability (int32_t nCapabilityId) const noexcept override |
| Get a device manager capability by id. More... | |
| std::vector< Capability::Class > | getCapabilityClasses () const noexcept override |
| The union of the device manager capability classes of all the children. More... | |
| std::vector< Capability::Class > | getDeviceCapabilityClasses () const noexcept override |
| The union of the device capability classes of all the children's devices. More... | |
| std::vector< Event::Class > | getEventClasses () const noexcept override |
| The union of the event types of all the children. More... | |
| std::vector< int32_t > | getDevicesWithCapabilityClass (const Capability::Class &oCapabilityClass) const noexcept override |
| The union of the devices of all the children with a given capability class. More... | |
| std::vector< int32_t > | getDevices () const noexcept override |
| The union of the devices of all the children. More... | |
| bool | isEventClassEnabled (const Event::Class &oEventClass) const noexcept override |
| Tells whether an event class is enabled in at least one of the children. More... | |
| void | enableEventClass (const Event::Class &oEventClass) noexcept override |
| Calls the function for all the children. More... | |
| bool | addAccessor (const shared_ptr< Accessor > &refAccessor) noexcept override |
| Calls addAccessor() of children. More... | |
| bool | removeAccessor (const shared_ptr< Accessor > &refAccessor) noexcept override |
| Calls removeAccessor() of children. More... | |
| bool | hasAccessor (const shared_ptr< Accessor > &refAccessor) noexcept override |
| Tells whether an accessor is at least in one of the children. More... | |
| bool | addEventListener (const shared_ptr< EventListener > &refEventListener, const shared_ptr< CallIf > &refCallIf) noexcept override |
| Calls addEventListener of children. More... | |
| bool | addEventListener (const shared_ptr< EventListener > &refEventListener) noexcept override |
| Calls addEventListener of children. More... | |
| bool | removeEventListener (const shared_ptr< EventListener > &refEventListener, bool bFinalize) noexcept override |
| Calls removeEventListener of children. More... | |
| bool | removeEventListener (const shared_ptr< EventListener > &refEventListener) noexcept override |
| Calls removeEventListener of children. More... | |
| std::vector< shared_ptr< ChildDeviceManager > > | getChildren () const noexcept |
| The child device managers. More... | |
| virtual std::vector< shared_ptr< Capability > > | getDeviceManagerCapabilities (const Capability::Class &oClass) const noexcept |
| Get the device manager capabilities of a given class of all the children. More... | |
Public Member Functions inherited from stmi::ChildDeviceManager | |
| shared_ptr< ParentDeviceManager > | getParent () const noexcept |
| Gets the parent of this child device manager. More... | |
| shared_ptr< ParentDeviceManager > | getParent () noexcept |
| Gets the parent of this child device manager. More... | |
| shared_ptr< ParentDeviceManager > | getRoot () const noexcept |
| Returns the root device manager. More... | |
| shared_ptr< ParentDeviceManager > | getRoot () noexcept |
| Returns the root device manager. More... | |
| bool | isParent () const noexcept |
| Tells whether this instance is also a ParentDeviceManager. More... | |
| shared_ptr< ParentDeviceManager > | getAsParent () const noexcept |
| If a parent returns this object as a parent. More... | |
| shared_ptr< ParentDeviceManager > | getAsParent () noexcept |
| If a parent returns this object as a parent. More... | |
Public Member Functions inherited from stmi::DeviceManager | |
| virtual | ~DeviceManager () noexcept=default |
| template<typename TCapa > | |
| bool | getCapability (shared_ptr< TCapa > &refCapa) const noexcept |
| Request a registered device manager capability. More... | |
Protected Member Functions | |
| ParentDeviceManager () noexcept | |
| void | init (const std::vector< shared_ptr< ChildDeviceManager > > &aChildDeviceManager) noexcept |
| Initialization. More... | |
| void | removeChildren () noexcept |
| Removes all children. More... | |
Protected Member Functions inherited from stmi::ChildDeviceManager | |
| ChildDeviceManager () noexcept | |
| Constructor. More... | |
Protected Member Functions inherited from stmi::DeviceManager | |
| DeviceManager () noexcept | |
Additional Inherited Members | |
Static Public Member Functions inherited from stmi::DeviceManager | |
| static int64_t | getNowTimeMicroseconds () noexcept |
| Current time from epoch in microseconds. More... | |
Device manager container class.
The contained device managers (the children) must be subclasses of ChildDeviceManager.
|
protectednoexcept |
|
overridevirtualnoexcept |
Calls addAccessor() of children.
true if at least one of the children returned true, false otherwise. Implements stmi::DeviceManager.
|
overridevirtualnoexcept |
Calls addEventListener of children.
Implements stmi::DeviceManager.
|
overridevirtualnoexcept |
Calls addEventListener of children.
Implements stmi::DeviceManager.
|
overridevirtualnoexcept |
Calls the function for all the children.
Implements stmi::DeviceManager.
|
overridevirtualnoexcept |
Get a device manager capability of a certain class.
Queries its children. The returned capability isn't necessarily the only one for the given class.
| oClass | The class. Must be valid. |
Implements stmi::DeviceManager.
|
overridevirtualnoexcept |
Get a device manager capability by id.
Queries its children.
| nCapabilityId | The id. |
Implements stmi::DeviceManager.
|
overridevirtualnoexcept |
The union of the device manager capability classes of all the children.
Implements stmi::DeviceManager.
|
inlinenoexcept |
The child device managers.
|
overridevirtualnoexcept |
Return the device with the given id.
| nDeviceId | The device id. |
Implements stmi::DeviceManager.
|
overridevirtualnoexcept |
The union of the device capability classes of all the children's devices.
Implements stmi::DeviceManager.
|
virtualnoexcept |
Get the device manager capabilities of a given class of all the children.
| oClass | The device manager capability class. Must be subclass of DeviceManagerCapability. |
|
overridevirtualnoexcept |
The union of the devices of all the children.
Implements stmi::DeviceManager.
|
overridevirtualnoexcept |
The union of the devices of all the children with a given capability class.
Implements stmi::DeviceManager.
|
overridevirtualnoexcept |
The union of the event types of all the children.
Implements stmi::DeviceManager.
|
overridevirtualnoexcept |
Tells whether an accessor is at least in one of the children.
Implements stmi::DeviceManager.
|
protectednoexcept |
Initialization.
Cannot be called twice.
| aChildDeviceManager | The child device managers. Cannot be empty. |
|
overridevirtualnoexcept |
Tells whether an event class is enabled in at least one of the children.
Implements stmi::DeviceManager.
|
overridevirtualnoexcept |
Calls removeAccessor() of children.
true if at least one of the children returned true, false otherwise. Implements stmi::DeviceManager.
|
inlineprotectednoexcept |
Removes all children.
|
overridevirtualnoexcept |
Calls removeEventListener of children.
Implements stmi::DeviceManager.
|
overridevirtualnoexcept |
Calls removeEventListener of children.
Implements stmi::DeviceManager.
1.8.13