Changeset 7717 in orxonox.OLD for trunk/src/lib/util/executor
- Timestamp:
- May 19, 2006, 2:51:00 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/util/executor/executor_functional.h
r7716 r7717 91 91 this->functorType = Executor_Objective; 92 92 this->functionPointer = functionPointer; 93 } 93 }; 94 94 95 virtual void operator()(BaseObject* object, const SubString& sub = SubString()) const 95 96 { … … 97 98 }; 98 99 99 Executor* clone() const { }; 100 virtual Executor* clone() const { 101 return new __EXECUTOR_FUNCTIONAL_NAME(0)<T>(this->functionPointer); 102 }; 100 103 }; 101 104 … … 112 115 this->functorType = Executor_Objective; 113 116 this->functionPointer = functionPointer; 114 } 117 }; 118 115 119 virtual void operator()(BaseObject* object, const SubString& sub = SubString()) const 116 120 { … … 125 129 }; 126 130 127 virtual Executor* clone() const {}; 131 virtual Executor* clone() const { 132 return new __EXECUTOR_FUNCTIONAL_NAME(1)<T, type0>(this->functionPointer); 133 }; 128 134 }; 129 135 … … 140 146 this->functorType = Executor_Objective; 141 147 this->functionPointer = functionPointer; 142 } 148 }; 149 143 150 virtual void operator()(BaseObject* object, const SubString& sub = SubString()) const 144 151 { … … 148 155 }; 149 156 150 virtual Executor* clone() const {}; 157 virtual Executor* clone() const { 158 return new __EXECUTOR_FUNCTIONAL_NAME(2)<T, type0, type1>(this->functionPointer); 159 }; 151 160 }; 152 161
Note: See TracChangeset
for help on using the changeset viewer.