HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_TimeGateD Class Reference

#include <UT_TimeGate.h>

Public Member Functions

 UT_TimeGateD ()
 
void setThreshold (int threshold_ms)
 
bool tryAcquire ()
 
bool canAcquire () const
 
void acquire ()
 

Detailed Description

Dynamic version of timegate where the tick threshold isn't hardcoded by the template specification.

Definition at line 69 of file UT_TimeGate.h.

Constructor & Destructor Documentation

UT_TimeGateD::UT_TimeGateD ( )
inline

Definition at line 72 of file UT_TimeGate.h.

Member Function Documentation

void UT_TimeGateD::acquire ( )
inline

Resets the gate so that canAcquire()/tryAcquire() will return false until at least TIMEOUT_MS has elapsed.

Definition at line 105 of file UT_TimeGate.h.

bool UT_TimeGateD::canAcquire ( ) const
inline

Return true if at least TIMEOUT_MS has elapsed from the last call to acquire(), without actually acquiring.

Definition at line 97 of file UT_TimeGate.h.

void UT_TimeGateD::setThreshold ( int  threshold_ms)
inline

Definition at line 79 of file UT_TimeGate.h.

bool UT_TimeGateD::tryAcquire ( )
inline

Return true if at least TIMEOUT_MS has elapsed from the last time this method returned true. Resolution is ~100ms.

Definition at line 86 of file UT_TimeGate.h.


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