AIToolbox
A library that offers tools for AI problem solving.
|
Namespaces | |
POMDP | |
Classes | |
struct | GetFunctionArguments |
This struct helps decompose a function into return value and arguments. More... | |
struct | GetFunctionArguments< R(*)(Args...)> |
struct | GetFunctionArguments< R(C::*)(Args...) const > |
struct | GetFunctionArguments< R(C::*)(Args...)> |
struct | IdPack |
This class is simply a template container for ids. More... | |
struct | is_compatible_f |
This struct reports whether a given function is compatible with a given signature. More... | |
struct | is_compatible_f< R(Args...), R2(Args2...)> |
struct | is_compatible_f< R(C::*)(Args...) const, R2(Args2...)> |
struct | is_compatible_f< R(C::*)(Args...), R2(Args2...)> |
struct | Matcher |
This struct allows to match between two tuples types. More... | |
struct | Matcher< N, std::tuple< F, A... >, std::tuple< F, B... >, IDs... > |
struct | Matcher< N, std::tuple< FA, A... >, std::tuple< FB, B... >, IDs... > |
struct | Matcher< N, std::tuple<>, std::tuple< B... >, IDs... > |
Variables | |
char | logBuffer [500] = {0} |
void AIToolbox::Impl::caller | ( | C & | c, |
F | f, | ||
std::tuple< Args... > && | args, | ||
IdPack< IDs... > | |||
) |
void AIToolbox::Impl::caller | ( | F | f, |
std::tuple< Args... > && | args, | ||
IdPack< IDs... > | |||
) |
This function calls the input function with the subset of correct parameters from the input tuple.
The nameless IdPack parameter contains the indeces of the arguments to pass to the function.
f | The function to call. |
args | All arguments. |
void AIToolbox::Impl::callFunction | ( | C & | c, |
F | f, | ||
Args &&... | args | ||
) |
This function calls the input member function with the specified arguments.
If the function only accepts a subset of the input arguments, only the correct ones are passed through. We do require that the arguments are in the same order (we don't find permutations of the arguments which might match).
c | The object to call the member function on. |
f | The member function to call. |
...args | The arguments to pass. |
void AIToolbox::Impl::callFunction | ( | F | f, |
Args &&... | args | ||
) |
This function calls the input function with the specified arguments.
If the function only accepts a subset of the input arguments, only the correct ones are passed through. We do require that the arguments are in the same order (we don't find permutations of the arguments which might match).
f | The function to call. |
...args | The arguments to pass. |
|
inline |