merged AI doc, some new pages
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
/*! \file pistatemachine_base.h
|
||||
* \ingroup StateMachine
|
||||
* \~\brief
|
||||
* \~english Some template helpers for PIStateMachine
|
||||
* \~russian Несколько шаблонов для PIStateMachine
|
||||
*/
|
||||
//! \~\file pistatemachine_base.h
|
||||
//! \~\ingroup StateMachine
|
||||
//! \~\brief
|
||||
//! \~english Declares helper types shared by the state machine API
|
||||
//! \~russian Объявляет вспомогательные типы, общие для API машины состояний
|
||||
/*
|
||||
PIP - Platform Independent Primitives
|
||||
Some template helpers for PIStateMachine
|
||||
Ivan Pelipenko peri4ko@yandex.ru, Andrey Bychkov work.a.b@yandex.ru
|
||||
Ivan Pelipenko peri4ko@yandex.ru
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
@@ -37,6 +36,7 @@ public:
|
||||
virtual uint formatHash() = 0;
|
||||
};
|
||||
|
||||
|
||||
template<typename... Args>
|
||||
class Function: public FunctionBase {
|
||||
public:
|
||||
@@ -47,6 +47,7 @@ public:
|
||||
std::function<bool(Args...)> func;
|
||||
};
|
||||
|
||||
|
||||
template<typename Ret, typename... Args>
|
||||
FunctionBase * makeFunction(std::function<Ret(Args...)> func) {
|
||||
auto * ret = new Function<Args...>();
|
||||
|
||||
Reference in New Issue
Block a user