Show
Ignore:
Timestamp:
04/12/09 05:57:17 (5 years ago)
Author:
saturday06
Message:

ntyaoui

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/objective-cplusplus/i3/trunk/src/mil/include/mil/ModuleExecuteProxy.h

    r32286 r32287  
    1111}; 
    1212 
    13 template <class Target> 
    14 class ModuleExecuteProxy 
    15 { 
    16 public: 
    17     template <class EventData> 
    18     static void execute(Target& target, EventData& data) { 
     13template <class EventData, class Target> 
     14struct ModuleExecuteProxy { 
     15    static void execute(EventData& data, Target& target) { 
    1916        target.getChild().execute(data); 
    2017    } 
     18}; 
    2119 
    22     template <> 
    23     static void execute<mil::pool::ReturnMemoryEvent>(Target& target, mil::pool::ReturnMemoryEvent& data) { 
     20template <class Target> 
     21struct ModuleExecuteProxy<mil::pool::ReturnMemoryEvent, Target> { 
     22    static void execute(mil::pool::ReturnMemoryEvent& data, Target& target) { 
    2423        target.producer.free(data.memory); 
    2524    } 
     25}; 
    2626 
    27     template <> 
    28     static void execute<ExitEvent>(Target& target, ExitEvent& data) { 
     27template <class Target> 
     28struct ModuleExecuteProxy<ExitEvent, Target> { 
     29    static void execute(ExitEvent& data, Target& target) { 
    2930        target.destroy(); 
    3031    } 
    3132}; 
     33} 
    3234 
    33 }