[9869] | 1 | /*! |
---|
| 2 | * @file functor_list.h |
---|
| 3 | * all the Different types of Functions one can include by using a simple createExecutor call |
---|
| 4 | * with a FunctionPointer as Argument |
---|
| 5 | */ |
---|
[5133] | 6 | /* |
---|
| 7 | orxonox - the future of 3D-vertical-scrollers |
---|
| 8 | |
---|
| 9 | Copyright (C) 2004 orx |
---|
| 10 | |
---|
| 11 | This program is free software; you can redistribute it and/or modify |
---|
| 12 | it under the terms of the GNU General Public License as published by |
---|
| 13 | the Free Software Foundation; either version 2, or (at your option) |
---|
| 14 | any later version. |
---|
| 15 | */ |
---|
| 16 | |
---|
| 17 | |
---|
[5135] | 18 | #ifdef FUNCTOR_LIST |
---|
[9869] | 19 | FUNCTOR_LIST(0)(FUNCTOR_CALL_TYPE); |
---|
[5135] | 20 | //! makes functions with one string |
---|
[9869] | 21 | FUNCTOR_LIST(1)(FUNCTOR_CALL_TYPE, const std::string&); |
---|
[5135] | 22 | //! makes functions with two strings |
---|
[9869] | 23 | FUNCTOR_LIST(2)(FUNCTOR_CALL_TYPE, const std::string&, const std::string&); |
---|
[5135] | 24 | //! makes functions with three strings |
---|
[9869] | 25 | FUNCTOR_LIST(3)(FUNCTOR_CALL_TYPE, const std::string&, const std::string&, const std::string&); |
---|
[5135] | 26 | //! makes functions with four strings |
---|
[9869] | 27 | FUNCTOR_LIST(4)(FUNCTOR_CALL_TYPE, const std::string&, const std::string&, const std::string&, const std::string&); |
---|
[5133] | 28 | |
---|
[7221] | 29 | |
---|
[5135] | 30 | //! makes functions with one bool |
---|
[9869] | 31 | FUNCTOR_LIST(1)(FUNCTOR_CALL_TYPE, bool); |
---|
[5133] | 32 | |
---|
[5135] | 33 | //! makes functions with one int |
---|
[9869] | 34 | FUNCTOR_LIST(1)(FUNCTOR_CALL_TYPE, int); |
---|
[5135] | 35 | //! makes functions with two ints |
---|
[9869] | 36 | FUNCTOR_LIST(2)(FUNCTOR_CALL_TYPE, int, int); |
---|
[5135] | 37 | //! makes functions with three ints |
---|
[9869] | 38 | FUNCTOR_LIST(3)(FUNCTOR_CALL_TYPE, int, int, int); |
---|
[5135] | 39 | //! makes functions with four ints |
---|
[9869] | 40 | FUNCTOR_LIST(4)(FUNCTOR_CALL_TYPE, int, int, int, int); |
---|
[5133] | 41 | |
---|
| 42 | |
---|
[5135] | 43 | //! makes functions with one unsigned int |
---|
[9869] | 44 | FUNCTOR_LIST(1)(FUNCTOR_CALL_TYPE, unsigned int); |
---|
[5135] | 45 | //! makes functions with two unsigned ints |
---|
[9869] | 46 | FUNCTOR_LIST(2)(FUNCTOR_CALL_TYPE, unsigned int, unsigned int); |
---|
[5135] | 47 | //! makes functions with three unsigned ints |
---|
[9869] | 48 | FUNCTOR_LIST(3)(FUNCTOR_CALL_TYPE, unsigned int, unsigned int, unsigned int); |
---|
[5135] | 49 | //! makes functions with four unsigned ints |
---|
[9869] | 50 | FUNCTOR_LIST(4)(FUNCTOR_CALL_TYPE, unsigned int, unsigned int, unsigned int, unsigned int); |
---|
[5133] | 51 | |
---|
[5135] | 52 | //! makes functions with one float |
---|
[9869] | 53 | FUNCTOR_LIST(1)(FUNCTOR_CALL_TYPE, float); |
---|
[5135] | 54 | //! makes functions with two floats |
---|
[9869] | 55 | FUNCTOR_LIST(2)(FUNCTOR_CALL_TYPE, float, float); |
---|
[5135] | 56 | //! makes functions with three floats |
---|
[9869] | 57 | FUNCTOR_LIST(3)(FUNCTOR_CALL_TYPE, float, float, float); |
---|
[5135] | 58 | //! makes functions with four floats |
---|
[9869] | 59 | FUNCTOR_LIST(4)(FUNCTOR_CALL_TYPE, float, float, float, float); |
---|
[5135] | 60 | //! makes functions with four floats |
---|
[9869] | 61 | FUNCTOR_LIST(5)(FUNCTOR_CALL_TYPE, float, float, float, float, float); |
---|
[5133] | 62 | |
---|
| 63 | //! mixed values: |
---|
[9869] | 64 | FUNCTOR_LIST(2)(FUNCTOR_CALL_TYPE, const std::string&, bool); |
---|
| 65 | FUNCTOR_LIST(2)(FUNCTOR_CALL_TYPE, const std::string&, int); |
---|
| 66 | FUNCTOR_LIST(2)(FUNCTOR_CALL_TYPE, const std::string&, float); |
---|
| 67 | FUNCTOR_LIST(2)(FUNCTOR_CALL_TYPE, unsigned int, long); |
---|
| 68 | FUNCTOR_LIST(2)(FUNCTOR_CALL_TYPE, const std::string&, unsigned int); |
---|
[5391] | 69 | |
---|
[9869] | 70 | FUNCTOR_LIST(3)(FUNCTOR_CALL_TYPE, const std::string&, float, unsigned int); |
---|
| 71 | FUNCTOR_LIST(4)(FUNCTOR_CALL_TYPE, const std::string&, float, unsigned int, unsigned int); |
---|
| 72 | FUNCTOR_LIST(3)(FUNCTOR_CALL_TYPE, const std::string&, int, unsigned int); |
---|
| 73 | FUNCTOR_LIST(3)(FUNCTOR_CALL_TYPE, const std::string&, unsigned int, unsigned int); |
---|
[5391] | 74 | |
---|
[9869] | 75 | FUNCTOR_LIST(5)(FUNCTOR_CALL_TYPE, float, float, float, float, const std::string&); |
---|
[8619] | 76 | |
---|
[5135] | 77 | #endif /* FUNCTOR_LIST */ |
---|