Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/util/executor/executor_const_member.h @ 9869

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

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

File size: 1.6 KB
RevLine 
[4838]1/*!
[9748]2 * @file executor_const_member.h
[9737]3 * Definition of an Executor to Member Functions
[5391]4 */
[7716]5/*
6   orxonox - the future of 3D-vertical-scrollers
[1853]7
[7716]8   Copyright (C) 2004 orx
[1853]9
[7716]10   This program is free software; you can redistribute it and/or modify
11   it under the terms of the GNU General Public License as published by
12   the Free Software Foundation; either version 2, or (at your option)
13   any later version.
[5141]14
[7716]15### File Specific:
16   main-programmer: Benjamin Grauer
17   co-programmer: ...
18*/
[5652]19
[5328]20
[9739]21#ifndef __EXECUTOR_CONST_MEMBER_H_
22#define __EXECUTOR_CONST_MEMBER_H_
[5641]23
[9737]24/// Define all Constructs, that define an Executor.
25//! The Name to be attached to the functional (for normal, static, and const modes)
[9745]26#define __EXECUTOR_FUNCTIONAL_NAME(ParamCount, Ext)   Executor##ParamCount##Ext##_const
[5161]27
[7724]28//! if Functional is constant calling
[9738]29#define __EXECUTOR_FUNCTIONAL_CONST              const
[7724]30//! The Execution-mode (either static or objective)
[7716]31#define __EXECUTOR_FUNCTIONAL_FUNCTION_EXEC      dynamic_cast<T*>(object)->*(functionPointer)
[7724]32//! The Function-Pointer, and how to save it internally.
[7716]33#define __EXECUTOR_FUNCTIONAL_FUNCTION_POINTER   T::*functionPointer
[9737]34//! The Type of Function
[9738]35#define __EXECUTOR_FUNCTIONAL_FUNCTIONTYPE       Executor<CallType, BaseClass>::FunctionConstMember
[5161]36
37
[9737]38/// We want to include __EXECUTOR_GENERIC_H again, with current settings.
[9740]39
[9737]40#include "executor_generic.h"
[5135]41
[9737]42#undef __EXECUTOR_FUNCTIONAL_NAME
[9728]43
[7716]44#undef __EXECUTOR_FUNCTIONAL_CONST
45#undef __EXECUTOR_FUNCTIONAL_FUNCTION_EXEC
46#undef __EXECUTOR_FUNCTIONAL_FUNCTION_POINTER
[9735]47#undef __EXECUTOR_FUNCTIONAL_FUNCTIONTYPE
[7725]48
[9739]49#endif /* __EXECUTOR_CONST_MEMBER_H_ */
Note: See TracBrowser for help on using the repository browser.