The Sparta Modeling Framework
Loading...
Searching...
No Matches
sparta::tracker::StateTrackerUnit< EnumT > Class Template Reference

This is the actual Lightweight Tracker class which does the. More...

#include <StateTracker.hpp>

Public Member Functions

 StateTrackerUnit (Scheduler *scheduler)
 
 StateTrackerUnit (const StateTrackerUnit &)=default
 
 StateTrackerUnit (StateTrackerUnit &&rval)
 
template<typename EnumType >
void startState (const EnumType &state_enum)
 This method starts the timer on this particular value of.
 
template<typename EnumType >
void endState (const EnumType &state_enum)
 This method stops the timer on this particular value of.
 
void updateLastDeltas () noexcept
 This method is called right before we send away a.
 
sparta::Scheduler::Tick getActiveTime () const
 
const StateSet< EnumT > & getStateSet () const
 

Detailed Description

template<typename EnumT>
class sparta::tracker::StateTrackerUnit< EnumT >

This is the actual Lightweight Tracker class which does the.

Definition at line 587 of file StateTracker.hpp.

Constructor & Destructor Documentation

◆ StateTrackerUnit() [1/2]

template<typename EnumT >
sparta::tracker::StateTrackerUnit< EnumT >::StateTrackerUnit ( Scheduler scheduler)
inline

Definition at line 589 of file StateTracker.hpp.

◆ StateTrackerUnit() [2/2]

template<typename EnumT >
sparta::tracker::StateTrackerUnit< EnumT >::StateTrackerUnit ( StateTrackerUnit< EnumT > &&  rval)
inline

Definition at line 597 of file StateTracker.hpp.

Member Function Documentation

◆ endState()

template<typename EnumT >
template<typename EnumType >
void sparta::tracker::StateTrackerUnit< EnumT >::endState ( const EnumType &  state_enum)
inline

This method stops the timer on this particular value of.

Definition at line 629 of file StateTracker.hpp.

◆ getActiveTime()

template<typename EnumT >
sparta::Scheduler::Tick sparta::tracker::StateTrackerUnit< EnumT >::getActiveTime ( ) const
inline

Return the amount of time this state has been active in the current state

Definition at line 660 of file StateTracker.hpp.

◆ getStateSet()

template<typename EnumT >
const StateSet< EnumT > & sparta::tracker::StateTrackerUnit< EnumT >::getStateSet ( ) const
inline

Definition at line 665 of file StateTracker.hpp.

◆ startState()

template<typename EnumT >
template<typename EnumType >
void sparta::tracker::StateTrackerUnit< EnumT >::startState ( const EnumType &  state_enum)
inline

This method starts the timer on this particular value of.

Definition at line 607 of file StateTracker.hpp.

◆ updateLastDeltas()

template<typename EnumT >
void sparta::tracker::StateTrackerUnit< EnumT >::updateLastDeltas ( )
inlinenoexcept

This method is called right before we send away a.

Definition at line 645 of file StateTracker.hpp.


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