#include <llkeythrottle.h>
Public Types | |
enum | State { THROTTLE_OK, THROTTLE_NEWLY_BLOCKED, THROTTLE_BLOCKED } |
Public Member Functions | |
LLKeyThrottle (U32 limit, F32 interval) | |
~LLKeyThrottle () | |
State | noteAction (const T &id, S32 weight=1) |
void | throttleAction (const T &id) |
BOOL | isThrottled (const T &id) const |
Protected Attributes | |
LLKeyThrottleImpl< T > & | m |
Definition at line 89 of file llkeythrottle.h.
enum LLKeyThrottle::State |
Definition at line 112 of file llkeythrottle.h.
LLKeyThrottle< T >::LLKeyThrottle | ( | U32 | limit, | |
F32 | interval | |||
) | [inline] |
Definition at line 92 of file llkeythrottle.h.
References LLKeyThrottleImpl< T >::getTime(), LLKeyThrottle< T >::m, and USEC_PER_SEC.
LLKeyThrottle< T >::~LLKeyThrottle | ( | ) | [inline] |
State LLKeyThrottle< T >::noteAction | ( | const T & | id, | |
S32 | weight = 1 | |||
) | [inline] |
Definition at line 119 of file llkeythrottle.h.
References FALSE, LLKeyThrottleImpl< T >::getTime(), LLKeyThrottle< T >::m, LLKeyThrottle< T >::THROTTLE_BLOCKED, LLKeyThrottle< T >::THROTTLE_NEWLY_BLOCKED, and LLKeyThrottle< T >::THROTTLE_OK.
Referenced by LLKeyThrottle< T >::throttleAction().
void LLKeyThrottle< T >::throttleAction | ( | const T & | id | ) | [inline] |
Definition at line 191 of file llkeythrottle.h.
References llmax(), LLKeyThrottle< T >::m, LLKeyThrottle< T >::noteAction(), and TRUE.
BOOL LLKeyThrottle< T >::isThrottled | ( | const T & | id | ) | const [inline] |
LLKeyThrottleImpl<T>& LLKeyThrottle< T >::m [protected] |
Definition at line 228 of file llkeythrottle.h.
Referenced by LLKeyThrottle< T >::isThrottled(), LLKeyThrottle< T >::LLKeyThrottle(), LLKeyThrottle< T >::noteAction(), LLKeyThrottle< T >::throttleAction(), and LLKeyThrottle< T >::~LLKeyThrottle().