|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
One ControlValueStore per key, for a host with a runtime count of tunable groups. More...
#include <ControlValueStore.hpp>
Public Types | |
| using | Store = ControlValueStore<Slot> |
Public Member Functions | |
| template<typename C> | |
| C & | declare (const Key &key) |
Creates the store of key, replacing any it had, and returns its struct. | |
| bool | erase (const Key &key) |
Drops the store of key. | |
| const Store * | find (const Key &key) const noexcept |
| Store * | find (const Key &key) noexcept |
The store of key, or null when it has none. | |
| template<typename Visit> | |
| void | for_each (const Visit &visit) |
| Calls visit(key, store) for every store in key order. | |
| void | refresh () |
| Reads the sources of every store. | |
| size_t | size () const noexcept |
Private Attributes | |
| std::map< Key, std::unique_ptr< Store > > | m_stores |
One ControlValueStore per key, for a host with a runtime count of tunable groups.
Each key owns its own store and so its own described struct, for example one per control of a device. declare() creates or replaces the store of a key, and the store is then used through find(). Adding or removing a key belongs outside the block that reads the stores, as with any source change.
| Key | An ordered key type. |
| Slot | A ControlSlot, the slot type of every store. |
Definition at line 306 of file ControlValueStore.hpp.