MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::ControlValueTable< Key, Slot > Class Template Reference

One ControlValueStore per key, for a host with a runtime count of tunable groups. More...

#include <ControlValueStore.hpp>

Collaboration diagram for MayaFlux::ControlValueTable< Key, Slot >:

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

Detailed Description

template<typename Key, ControlSlot Slot>
class MayaFlux::ControlValueTable< Key, Slot >

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.

Template Parameters
KeyAn ordered key type.
SlotA ControlSlot, the slot type of every store.

Definition at line 306 of file ControlValueStore.hpp.


The documentation for this class was generated from the following file: