gramods
Loading...
Searching...
No Matches
gramods::gmTrack::Float2KeyChangeTracker Class Reference

This tracker of gmCore::float2 data reports states from one or more other trackers of the same type, optionally also changing the key of one or more states. More...

#include <Float2KeyChangeTracker.hh>

Inheritance diagram for gramods::gmTrack::Float2KeyChangeTracker:
Collaboration diagram for gramods::gmTrack::Float2KeyChangeTracker:

Static Public Attributes

static gramods::gmCore::OFactory::OFactoryInformation _gm_ofi

Additional Inherited Members

Public Types inherited from gramods::gmTrack::TrackerBase< gmCore::float2 >
typedef std::chrono::steady_clock clock
typedef std::unordered_map< std::string, Sample > State
 Type of the tracker state.
Public Member Functions inherited from gramods::gmTrack::KeyChangeTracker< gmCore::float2 >
void addMapping (gmCore::string2 map)
 Adds a mapping, so that a key that matches the first specified string in the specified tracker is changed to the second specified string before being returned by get().
void addTracker (std::shared_ptr< TrackerBase< gmCore::float2 > > ptr)
 Adds a tracker to read states from.
void setRetainMapped (bool on)
 Sets if the old key should also be retained when mapped.
std::optional< typename TrackerBase< gmCore::float2 >::State > get () override
Public Member Functions inherited from gramods::gmTrack::TrackerBase< gmCore::float2 >
std::string getDefaultKey () override
 Returns the default key, in Configuration, for the Object, i.e.
Public Member Functions inherited from gramods::gmCore::Object
 Object ()
 Initializes internal data.
virtual ~Object ()
 Cleaning up internal data.
virtual void initialize ()
 Called to initialize the Object.
virtual void accept (Visitor *visitor)
 Calls the visitors apply method with this as argument.
virtual void traverse (Visitor *visitor)
 Calls the child Object's accept method, if such exist.
bool isInitialized ()
 Returns true if the Object is initialized.
Static Public Member Functions inherited from gramods::gmTrack::TrackerBase< gmCore::float2 >
static void merge (std::optional< State > &A, std::optional< State > B)
 Merges the two specified states.
Protected Attributes inherited from gramods::gmTrack::KeyChangeTracker< gmCore::float2 >
std::unique_ptr< Impl > _impl

Detailed Description

This tracker of gmCore::float2 data reports states from one or more other trackers of the same type, optionally also changing the key of one or more states.

See also
KeyChangeTracker

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