Changeset 9735 in orxonox.OLD for branches/new_class_id/src/lib/util/executor/executor.h
- Timestamp:
- Sep 15, 2006, 4:16:06 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/util/executor/executor.h
r9734 r9735 39 39 * Functions with many types (@see functor_list.h) 40 40 */ 41 template <typename CallType > class Executor41 template <typename CallType, class BaseClass = BaseObject> class Executor 42 42 { 43 43 public: 44 44 //! an enumerator for the definition of the Type. 45 45 typedef enum { 46 FunctionDefault, 47 FunctionStatic, 48 FunctionConst, 46 FunctionDefault, //!< The function is neither Static nor Constant 47 FunctionStatic, //!< The Function is Static and pointing to either a Static Member or a C-style function. 48 FunctionConst, //!< The Function is Constant and pointing to a Member that does not change the Object. 49 49 } FunctionType; 50 50 … … 67 67 68 68 /** executes a Command. @param objec the Object, @param count how many values, @param values the Values */ 69 virtual void operator()(Base Object* object, CallType& values) const = 0;69 virtual void operator()(BaseClass* object, CallType& values) const = 0; 70 70 71 71 /** … … 103 103 } 104 104 105 /** @returns the Clone as a new Copy of the Executor. */ 105 106 virtual Executor<CallType>* clone () const = 0; 106 107 … … 193 194 protected: 194 195 const bool bRetVal; //!< True if the Executor has a return Value. 195 unsigned intparamCount; //!< the count of parameters.196 const unsigned int paramCount; //!< the count of parameters. 196 197 MultiType defaultValue[7]; //!< Default Values. 197 198
Note: See TracChangeset
for help on using the changeset viewer.