Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/new_class_id/src/lib/util/executor/functor_list.h @ 9740

Last change on this file since 9740 was 9740, checked in by bensch, 18 years ago

multiple generic inclusion of Executors, better and nicer interface for include

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