Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 15, 2006, 4:16:06 PM (18 years ago)
Author:
bensch
Message:

orxonox/new_class_id: better usage of the FunctionType in the FunctionalExecutor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/util/executor/executor.h

    r9734 r9735  
    3939 *  Functions with many types (@see functor_list.h)
    4040 */
    41 template <typename CallType> class Executor
     41template <typename CallType, class BaseClass = BaseObject> class Executor
    4242{
    4343public:
    4444  //! an enumerator for the definition of the Type.
    4545  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.
    4949  } FunctionType;
    5050
     
    6767
    6868  /** executes a Command. @param objec the Object, @param count how many values, @param values the Values */
    69   virtual void operator()(BaseObject* object, CallType& values) const = 0;
     69  virtual void operator()(BaseClass* object, CallType& values) const = 0;
    7070
    7171  /**
     
    103103  }
    104104
     105  /** @returns the Clone as a new Copy of the Executor. */
    105106  virtual Executor<CallType>* clone () const = 0;
    106107
     
    193194protected:
    194195  const bool                  bRetVal;          //!< True if the Executor has a return Value.
    195   unsigned int                paramCount;       //!< the count of parameters.
     196  const unsigned int          paramCount;       //!< the count of parameters.
    196197  MultiType                   defaultValue[7];  //!< Default Values.
    197198
Note: See TracChangeset for help on using the changeset viewer.