Alex Bikfalvi
SimStream Documentation
IDelegate.h
00001 #pragma once 00002 00003 template<typename R> class IDelegate0 00004 { 00005 public: 00006 IDelegate0() { } 00007 virtual ~IDelegate0() { } 00008 00009 virtual R operator()() = 0; 00010 }; 00011 00012 template<typename R, typename P1> class IDelegate1 00013 { 00014 public: 00015 IDelegate1() { } 00016 virtual ~IDelegate1() { } 00017 00018 virtual R operator()(P1) = 0; 00019 }; 00020 00021 template<typename R, typename P1, typename P2> class IDelegate2 00022 { 00023 public: 00024 IDelegate2() { } 00025 virtual ~IDelegate2() { } 00026 00027 virtual R operator()(P1, P2) = 0; 00028 }; 00029 00030 template<typename R, typename P1, typename P2, typename P3> class IDelegate3 00031 { 00032 public: 00033 IDelegate3() { } 00034 virtual ~IDelegate3() { } 00035 00036 virtual R operator()(P1, P2, P3) = 0; 00037 }; 00038 00039 template<typename R, typename P1, typename P2, typename P3, typename P4> class IDelegate4 00040 { 00041 public: 00042 IDelegate4() { } 00043 virtual ~IDelegate4() { } 00044 00045 virtual R operator()(P1, P2, P3, P4) = 0; 00046 }; 00047 00048 template<typename R, typename P1, typename P2, typename P3, typename P4, typename P5> class IDelegate5 00049 { 00050 public: 00051 IDelegate5() { } 00052 virtual ~IDelegate5() { } 00053 00054 virtual R operator()(P1, P2, P3, P4, P5) = 0; 00055 };
Last updated: February 8, 2011