Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 17, 2006, 2:43:41 PM (18 years ago)
Author:
bensch
Message:

changed some functions to be inlined, (only runtime-specifics (important for LUA)

File:
1 edited

Legend:

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

    r9748 r9752  
    1717
    1818/** @returns the Type of an Argument taken by the Executor */
    19 template<typename type> MT_Type ExecutorParamType() { return MT_EXT1; };
    20 template<> MT_Type ExecutorParamType<bool>();
    21 template<> MT_Type ExecutorParamType<int>();
    22 template<> MT_Type ExecutorParamType<unsigned int>();
    23 template<> MT_Type ExecutorParamType<float>();
    24 template<> MT_Type ExecutorParamType<char>();
    25 template<> MT_Type ExecutorParamType<const std::string&>();
     19template<typename type> inline MT_Type ExecutorParamType() { return MT_EXT1; };
     20/** @returns the Type of an Argument taken by the Executor in this case MT_BOOL */
     21template<> inline MT_Type ExecutorParamType<bool>() { return MT_BOOL; };
     22/** @returns the Type of an Argument taken by the Executor in this case MT_INT*/
     23template<> inline MT_Type ExecutorParamType<int>() { return MT_INT; };
     24/** @returns the Type of an Argument taken by the Executor in this case MT_UINT*/
     25template<> inline MT_Type ExecutorParamType<unsigned int>() { return MT_UINT; };
     26/** @returns the Type of an Argument taken by the Executor in this case MT_FLOAT*/
     27template<> inline MT_Type ExecutorParamType<float>() { return MT_FLOAT; };
     28/** @returns the Type of an Argument taken by the Executor in this case MT_CHAR*/
     29template<> inline MT_Type ExecutorParamType<char>() { return MT_CHAR; };
     30/** @returns the Type of an Argument taken by the Executor in this case MT_STRING*/
     31template<> inline MT_Type ExecutorParamType<const std::string&>() { return MT_STRING; };
    2632
    2733////////////////
Note: See TracChangeset for help on using the changeset viewer.