SMACC
|
#include <smacc_orthogonal.h>
Public Member Functions | |
void | setStateMachine (ISmaccStateMachine *value) |
ISmaccStateMachine * | getStateMachine () |
void | initState (ISmaccState *state) |
void | addClientBehavior (std::shared_ptr< smacc::ISmaccClientBehavior > clientBehavior) |
void | runtimeConfigure () |
void | onEntry () |
void | onExit () |
void | onDispose () |
virtual std::string | getName () const |
template<typename SmaccComponentType > | |
void | requiresComponent (SmaccComponentType *&storage) |
template<typename SmaccClientType > | |
bool | requiresClient (SmaccClientType *&storage) |
const std::vector< std::shared_ptr< smacc::ISmaccClient > > & | getClients () |
const std::vector< std::vector< std::shared_ptr< smacc::ISmaccClientBehavior > > > & | getClientBehaviors () const |
template<typename T > | |
void | setGlobalSMData (std::string name, T value) |
template<typename T > | |
bool | getGlobalSMData (std::string name, T &ret) |
template<typename TClientBehavior > | |
TClientBehavior * | getClientBehavior () |
Protected Member Functions | |
virtual void | onInitialize () |
template<typename TOrthogonal , typename TClient > | |
void | assignClientToOrthogonal (TClient *client) |
Protected Attributes | |
std::vector< std::shared_ptr< smacc::ISmaccClient > > | clients_ |
Private Attributes | |
ISmaccStateMachine * | stateMachine_ |
std::vector< std::vector< std::shared_ptr< smacc::ISmaccClientBehavior > > > | clientBehaviors_ |
Friends | |
class | ISmaccStateMachine |
Definition at line 13 of file smacc_orthogonal.h.
void smacc::ISmaccOrthogonal::addClientBehavior | ( | std::shared_ptr< smacc::ISmaccClientBehavior > | clientBehavior | ) |
Definition at line 13 of file orthogonal.cpp.
References clientBehaviors_, getName(), and getStateMachine().
|
protected |
Definition at line 59 of file smacc_orthogonal_impl.h.
References getStateMachine().
TClientBehavior * smacc::ISmaccOrthogonal::getClientBehavior |
Definition at line 68 of file smacc_orthogonal_impl.h.
References clientBehaviors_.
|
inline |
Definition at line 87 of file smacc_orthogonal_impl.h.
References clientBehaviors_.
|
inline |
Definition at line 82 of file smacc_orthogonal_impl.h.
References clients_.
bool smacc::ISmaccOrthogonal::getGlobalSMData | ( | std::string | name, |
T & | ret | ||
) |
Definition at line 99 of file smacc_orthogonal_impl.h.
References smacc::ISmaccStateMachine::getGlobalSMData(), and getStateMachine().
|
virtual |
Definition at line 39 of file orthogonal.cpp.
References smacc::introspection::demangleSymbol().
Referenced by addClientBehavior(), initState(), onEntry(), onExit(), and runtimeConfigure().
|
inline |
Definition at line 105 of file smacc_orthogonal_impl.h.
References stateMachine_.
Referenced by addClientBehavior(), assignClientToOrthogonal(), getGlobalSMData(), onDispose(), requiresClient(), and setGlobalSMData().
void smacc::ISmaccOrthogonal::initState | ( | ISmaccState * | state | ) |
Definition at line 33 of file orthogonal.cpp.
References clientBehaviors_, smacc::ISmaccState::getClassName(), and getName().
void smacc::ISmaccOrthogonal::onDispose | ( | ) |
Definition at line 103 of file orthogonal.cpp.
References clientBehaviors_, smacc::ISmaccStateMachine::disconnectSmaccSignalObject(), and getStateMachine().
void smacc::ISmaccOrthogonal::onEntry | ( | ) |
Definition at line 55 of file orthogonal.cpp.
References clientBehaviors_, and getName().
void smacc::ISmaccOrthogonal::onExit | ( | ) |
Definition at line 80 of file orthogonal.cpp.
References clientBehaviors_, and getName().
|
protectedvirtual |
Definition at line 29 of file orthogonal.cpp.
Referenced by setStateMachine().
bool smacc::ISmaccOrthogonal::requiresClient | ( | SmaccClientType *& | storage | ) |
Definition at line 16 of file smacc_orthogonal_impl.h.
References clients_, and getStateMachine().
Referenced by smacc::ISmaccClient::requiresClient(), and smacc::ISmaccClientBehavior::requiresClient().
void smacc::ISmaccOrthogonal::requiresComponent | ( | SmaccComponentType *& | storage | ) |
Definition at line 46 of file smacc_orthogonal_impl.h.
References smacc::ISmaccStateMachine::requiresComponent(), and stateMachine_.
void smacc::ISmaccOrthogonal::runtimeConfigure | ( | ) |
Definition at line 44 of file orthogonal.cpp.
References clientBehaviors_, and getName().
void smacc::ISmaccOrthogonal::setGlobalSMData | ( | std::string | name, |
T | value | ||
) |
Definition at line 93 of file smacc_orthogonal_impl.h.
References getStateMachine(), and smacc::ISmaccStateMachine::setGlobalSMData().
void smacc::ISmaccOrthogonal::setStateMachine | ( | ISmaccStateMachine * | value | ) |
Definition at line 7 of file orthogonal.cpp.
References onInitialize(), and stateMachine_.
|
friend |
Definition at line 65 of file smacc_orthogonal.h.
|
private |
Definition at line 64 of file smacc_orthogonal.h.
Referenced by addClientBehavior(), getClientBehavior(), getClientBehaviors(), initState(), onDispose(), onEntry(), onExit(), and runtimeConfigure().
|
protected |
Definition at line 59 of file smacc_orthogonal.h.
Referenced by smacc::Orthogonal< TOrthogonal >::createClient(), getClients(), and requiresClient().
|
private |
Definition at line 62 of file smacc_orthogonal.h.
Referenced by getStateMachine(), requiresComponent(), and setStateMachine().