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 | */ |
---|
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 | |
---|
18 | #ifdef FUNCTOR_LIST |
---|
19 | FUNCTOR_LIST(0)(FUNCTOR_CALL_TYPE); |
---|
20 | //! makes functions with one string |
---|
21 | FUNCTOR_LIST(1)(FUNCTOR_CALL_TYPE, const std::string&); |
---|
22 | //! makes functions with two strings |
---|
23 | FUNCTOR_LIST(2)(FUNCTOR_CALL_TYPE, const std::string&, const std::string&); |
---|
24 | //! makes functions with three strings |
---|
25 | FUNCTOR_LIST(3)(FUNCTOR_CALL_TYPE, const std::string&, const std::string&, const std::string&); |
---|
26 | //! makes functions with four strings |
---|
27 | FUNCTOR_LIST(4)(FUNCTOR_CALL_TYPE, const std::string&, const std::string&, const std::string&, const std::string&); |
---|
28 | |
---|
29 | |
---|
30 | //! makes functions with one bool |
---|
31 | FUNCTOR_LIST(1)(FUNCTOR_CALL_TYPE, bool); |
---|
32 | |
---|
33 | //! makes functions with one int |
---|
34 | FUNCTOR_LIST(1)(FUNCTOR_CALL_TYPE, int); |
---|
35 | //! makes functions with two ints |
---|
36 | FUNCTOR_LIST(2)(FUNCTOR_CALL_TYPE, int, int); |
---|
37 | //! makes functions with three ints |
---|
38 | FUNCTOR_LIST(3)(FUNCTOR_CALL_TYPE, int, int, int); |
---|
39 | //! makes functions with four ints |
---|
40 | FUNCTOR_LIST(4)(FUNCTOR_CALL_TYPE, int, int, int, int); |
---|
41 | |
---|
42 | |
---|
43 | //! makes functions with one unsigned int |
---|
44 | FUNCTOR_LIST(1)(FUNCTOR_CALL_TYPE, unsigned int); |
---|
45 | //! makes functions with two unsigned ints |
---|
46 | FUNCTOR_LIST(2)(FUNCTOR_CALL_TYPE, unsigned int, unsigned int); |
---|
47 | //! makes functions with three unsigned ints |
---|
48 | FUNCTOR_LIST(3)(FUNCTOR_CALL_TYPE, unsigned int, unsigned int, unsigned int); |
---|
49 | //! makes functions with four unsigned ints |
---|
50 | FUNCTOR_LIST(4)(FUNCTOR_CALL_TYPE, unsigned int, unsigned int, unsigned int, unsigned int); |
---|
51 | |
---|
52 | //! makes functions with one float |
---|
53 | FUNCTOR_LIST(1)(FUNCTOR_CALL_TYPE, float); |
---|
54 | //! makes functions with two floats |
---|
55 | FUNCTOR_LIST(2)(FUNCTOR_CALL_TYPE, float, float); |
---|
56 | //! makes functions with three floats |
---|
57 | FUNCTOR_LIST(3)(FUNCTOR_CALL_TYPE, float, float, float); |
---|
58 | //! makes functions with four floats |
---|
59 | FUNCTOR_LIST(4)(FUNCTOR_CALL_TYPE, float, float, float, float); |
---|
60 | //! makes functions with four floats |
---|
61 | FUNCTOR_LIST(5)(FUNCTOR_CALL_TYPE, float, float, float, float, float); |
---|
62 | |
---|
63 | //! mixed values: |
---|
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); |
---|
69 | |
---|
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); |
---|
74 | |
---|
75 | FUNCTOR_LIST(5)(FUNCTOR_CALL_TYPE, float, float, float, float, const std::string&); |
---|
76 | |
---|
77 | #endif /* FUNCTOR_LIST */ |
---|