Public Member Functions | Private Types | Private Attributes | List of all members
EventCounter Class Reference

#include <event_counter.h>

Inheritance diagram for EventCounter:
Inheritance graph
[legend]

Public Member Functions

bool consume (RTState_V1_6__7 &state)
 
bool consume (RTState_V1_8 &state)
 
bool consume (RTState_V3_0__1 &state)
 
bool consume (RTState_V3_2__3 &state)
 
void setupConsumer ()
 
void stopConsumer ()
 
void teardownConsumer ()
 
void trigger ()
 
- Public Member Functions inherited from URRTPacketConsumer
virtual bool consume (shared_ptr< RTPacket > packet)
 
- Public Member Functions inherited from IConsumer< RTPacket >
virtual void onTimeout ()
 

Private Types

typedef std::chrono::high_resolution_clock Clock
 

Private Attributes

Clock::time_point events_ [250]
 
size_t idx_ = 0
 
Clock::time_point last_
 

Detailed Description

Definition at line 26 of file event_counter.h.

Member Typedef Documentation

typedef std::chrono::high_resolution_clock EventCounter::Clock
private

Definition at line 29 of file event_counter.h.

Member Function Documentation

bool EventCounter::consume ( RTState_V1_6__7 state)
inlinevirtual

Implements URRTPacketConsumer.

Definition at line 71 of file event_counter.h.

bool EventCounter::consume ( RTState_V1_8 state)
inlinevirtual

Implements URRTPacketConsumer.

Definition at line 76 of file event_counter.h.

bool EventCounter::consume ( RTState_V3_0__1 state)
inlinevirtual

Implements URRTPacketConsumer.

Definition at line 81 of file event_counter.h.

bool EventCounter::consume ( RTState_V3_2__3 state)
inlinevirtual

Implements URRTPacketConsumer.

Definition at line 86 of file event_counter.h.

void EventCounter::setupConsumer ( )
inlinevirtual

Reimplemented from IConsumer< RTPacket >.

Definition at line 92 of file event_counter.h.

void EventCounter::stopConsumer ( )
inlinevirtual

Reimplemented from IConsumer< RTPacket >.

Definition at line 99 of file event_counter.h.

void EventCounter::teardownConsumer ( )
inlinevirtual

Reimplemented from IConsumer< RTPacket >.

Definition at line 96 of file event_counter.h.

void EventCounter::trigger ( )
inline

Definition at line 36 of file event_counter.h.

Member Data Documentation

Clock::time_point EventCounter::events_[250]
private

Definition at line 30 of file event_counter.h.

size_t EventCounter::idx_ = 0
private

Definition at line 31 of file event_counter.h.

Clock::time_point EventCounter::last_
private

Definition at line 33 of file event_counter.h.


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


ur_modern_driver
Author(s): Thomas Timm Andersen, Simon Rasmussen
autogenerated on Fri Jun 26 2020 03:37:01