Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
packml_sm::StateMachineEventLoop Class Reference

#include <state_machine_event_loop.h>

Public Member Functions

void start ()
 
 StateMachineEventLoop (int interval=50)
 
void stop ()
 
 ~StateMachineEventLoop ()
 

Public Attributes

EventHandler< StateMachineEventLoop, EventArgsupdateTickEvent
 

Private Member Functions

void updateLoop ()
 

Private Attributes

int interval_
 
std::atomic< bool > stop_thread_
 
std::unique_ptr< std::thread > thread_
 

Detailed Description

Definition at line 27 of file state_machine_event_loop.h.

Constructor & Destructor Documentation

packml_sm::StateMachineEventLoop::StateMachineEventLoop ( int  interval = 50)

Definition at line 25 of file state_machine_event_loop.cpp.

packml_sm::StateMachineEventLoop::~StateMachineEventLoop ( )

Definition at line 29 of file state_machine_event_loop.cpp.

Member Function Documentation

void packml_sm::StateMachineEventLoop::start ( )

Definition at line 38 of file state_machine_event_loop.cpp.

void packml_sm::StateMachineEventLoop::stop ( )

Definition at line 46 of file state_machine_event_loop.cpp.

void packml_sm::StateMachineEventLoop::updateLoop ( )
private

Definition at line 56 of file state_machine_event_loop.cpp.

Member Data Documentation

int packml_sm::StateMachineEventLoop::interval_
private

Definition at line 41 of file state_machine_event_loop.h.

std::atomic<bool> packml_sm::StateMachineEventLoop::stop_thread_
private

Definition at line 40 of file state_machine_event_loop.h.

std::unique_ptr<std::thread> packml_sm::StateMachineEventLoop::thread_
private

Definition at line 39 of file state_machine_event_loop.h.

EventHandler<StateMachineEventLoop, EventArgs> packml_sm::StateMachineEventLoop::updateTickEvent

Definition at line 30 of file state_machine_event_loop.h.


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


packml_sm
Author(s): Shaun Edwards
autogenerated on Fri Jul 12 2019 03:30:55