Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes
packml_sm::ActingState Struct Reference

#include <state.h>

Inheritance diagram for packml_sm::ActingState:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ActingState (StatesEnum state_value, const char *name_value, int delay_ms_value=200)
 ActingState (StatesEnum state_value, const QString &name_value, QState *super_state, int delay_ms_value=200)
 ActingState (StatesEnum state_value, const char *name_value, QState *super_state, std::function< int()> function_value)
virtual void operation ()
bool setOperationMethod (std::function< int()> function_value)

Static Public Member Functions

static ActingStateAborting (int delay_ms_value=200)
static ActingStateClearing (QState *abortable, int delay_ms_value=200)
static ActingStateCompleting (QState *stoppable, int delay_ms_value=200)
static ActingStateExecute (QState *stoppable, int delay_ms_value=200)
static ActingStateExecute (QState *stoppable, std::function< int()> function_value)
static ActingStateHolding (QState *stoppable, int delay_ms_value=200)
static ActingStateResetting (QState *stoppable, int delay_ms_value=200)
static ActingStateStarting (QState *stoppable, int delay_ms_value=200)
static ActingStateStopping (QState *abortable, int delay_ms_value=200)
static ActingStateSuspending (QState *stoppable, int delay_ms_value=200)
static ActingStateUnholding (QState *stoppable, int delay_ms_value=200)
static ActingStateUnsuspending (QState *stoppable, int delay_ms_value=200)

Protected Member Functions

virtual void onEntry (QEvent *e)
virtual void onExit (QEvent *e)

Private Attributes

int delay_ms
std::function< int()> function_
QFuture< void > function_state_

Detailed Description

Definition at line 124 of file state.h.


Constructor & Destructor Documentation

packml_sm::ActingState::ActingState ( StatesEnum  state_value,
const char *  name_value,
int  delay_ms_value = 200 
) [inline]

Definition at line 177 of file state.h.

packml_sm::ActingState::ActingState ( StatesEnum  state_value,
const QString &  name_value,
QState *  super_state,
int  delay_ms_value = 200 
) [inline]

Definition at line 182 of file state.h.

packml_sm::ActingState::ActingState ( StatesEnum  state_value,
const char *  name_value,
QState *  super_state,
std::function< int()>  function_value 
) [inline]

Definition at line 187 of file state.h.


Member Function Documentation

static ActingState* packml_sm::ActingState::Aborting ( int  delay_ms_value = 200) [inline, static]

Definition at line 164 of file state.h.

static ActingState* packml_sm::ActingState::Clearing ( QState *  abortable,
int  delay_ms_value = 200 
) [inline, static]

Definition at line 168 of file state.h.

static ActingState* packml_sm::ActingState::Completing ( QState *  stoppable,
int  delay_ms_value = 200 
) [inline, static]

Definition at line 160 of file state.h.

static ActingState* packml_sm::ActingState::Execute ( QState *  stoppable,
int  delay_ms_value = 200 
) [inline, static]

Definition at line 152 of file state.h.

static ActingState* packml_sm::ActingState::Execute ( QState *  stoppable,
std::function< int()>  function_value 
) [inline, static]

Definition at line 156 of file state.h.

static ActingState* packml_sm::ActingState::Holding ( QState *  stoppable,
int  delay_ms_value = 200 
) [inline, static]

Definition at line 144 of file state.h.

void packml_sm::ActingState::onEntry ( QEvent *  e) [protected, virtual]

Reimplemented from packml_sm::PackmlState.

Definition at line 46 of file state.cpp.

void packml_sm::ActingState::onExit ( QEvent *  e) [protected, virtual]

Reimplemented from packml_sm::PackmlState.

Definition at line 53 of file state.cpp.

Reimplemented from packml_sm::PackmlState.

Definition at line 64 of file state.cpp.

static ActingState* packml_sm::ActingState::Resetting ( QState *  stoppable,
int  delay_ms_value = 200 
) [inline, static]

Definition at line 128 of file state.h.

bool packml_sm::ActingState::setOperationMethod ( std::function< int()>  function_value) [inline]

Definition at line 192 of file state.h.

static ActingState* packml_sm::ActingState::Starting ( QState *  stoppable,
int  delay_ms_value = 200 
) [inline, static]

Definition at line 132 of file state.h.

static ActingState* packml_sm::ActingState::Stopping ( QState *  abortable,
int  delay_ms_value = 200 
) [inline, static]

Definition at line 172 of file state.h.

static ActingState* packml_sm::ActingState::Suspending ( QState *  stoppable,
int  delay_ms_value = 200 
) [inline, static]

Definition at line 148 of file state.h.

static ActingState* packml_sm::ActingState::Unholding ( QState *  stoppable,
int  delay_ms_value = 200 
) [inline, static]

Definition at line 136 of file state.h.

static ActingState* packml_sm::ActingState::Unsuspending ( QState *  stoppable,
int  delay_ms_value = 200 
) [inline, static]

Definition at line 140 of file state.h.


Member Data Documentation

Definition at line 206 of file state.h.

std::function<int()> packml_sm::ActingState::function_ [private]

Definition at line 207 of file state.h.

QFuture<void> packml_sm::ActingState::function_state_ [private]

Definition at line 208 of file state.h.


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


packml_sm
Author(s): Shaun Edwards
autogenerated on Sat Jun 8 2019 20:13:34