Lumiera
0.pre.03
»edit your freedom«
|
#include "stage/ctrl/state-map-grouping-storage.hpp"
Map storage for captured presentation state information.
The master table is an association of model::Tangible element IDs to StateData records, which are a set of property data elements. The key of the stored elements acts as propertyKey and was chosen by the originating UI element. It is assumed that the entry last seen represents the current state of this property, so previous records are overwritten. Access to unknown data is marked by returning diff::Ref::NO rsp. Storage::end()
(when searching)
Definition at line 65 of file state-map-grouping-storage.hpp.
Public Types | |
using | iterator = Storage::const_iterator |
using | Record = Storage::value_type |
Public Member Functions | |
iterator | begin () const |
void | clear () |
void | clearProperty (BareEntryID const &elementID, string propertyKey) |
clear previously recorded state for a given element and specific property | |
void | clearState (BareEntryID const &elementID) |
clear any previously recorded state for a given element | |
bool | empty () const |
iterator | end () const |
iterator | find (BareEntryID const &elementID) const |
void | record (BareEntryID const &elementID, GenNode const &stateMark) |
remember the state mark for the denoted element More... | |
GenNode const & | retrieve (BareEntryID const &elementID, string propertyKey) const |
retrieve captured state More... | |
size_t | size () const |
Static Public Member Functions | |
static BareEntryID const & | getID (Record const &entry) |
static StateData const & | getState (Record const &entry) |
static GenNode const & | getState (Record const &entry, string propertyKey) |
Access the recorded state mark, if any. More... | |
Private Types | |
using | StateData = std::set< GenNode, GenNode::IDComparator > |
using | Storage = std::unordered_map< BareEntryID, StateData, BareEntryID::UseEmbeddedHash > |
Static Private Member Functions | |
static StateData::const_iterator | findProperty (StateData const &stateSet, string propertyKey) |
Private Attributes | |
Storage | elmTable_ |
Additional Inherited Members | |
Private Member Functions inherited from NonCopyable | |
NonCopyable (NonCopyable const &)=delete | |
NonCopyable & | operator= (NonCopyable const &)=delete |
|
inline |
retrieve captured state
Definition at line 104 of file state-map-grouping-storage.hpp.
References steam::mobject::session::query::anonymous_namespace{fake-configrules.cpp}::entry(), and Ref::NO.
|
inline |
remember the state mark for the denoted element
Definition at line 119 of file state-map-grouping-storage.hpp.
Referenced by StateRecorder::recordState().
|
inlinestatic |
Access the recorded state mark, if any.
find()
function, templated to accept a value convertible to some key equivalent, which needs to be understood by the comparator of the set. To trigger using this overload, the comparator has to define a suitable operator()
and in addition a marker type is_transparent
. See transparent-cmp and the [reference][cind-cpp14] for explanation. //////////////////////////////////TICKET #991Definition at line 190 of file state-map-grouping-storage.hpp.