QtConcurrent: Add missing override
Change-Id: Ib8064a3c7bae68885b1adb78a55c69f7697e10db Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
parent
7d12ef183e
commit
7d6d70afe7
@ -96,7 +96,7 @@ public:
|
|||||||
reducer(OrderedReduce)
|
reducer(OrderedReduce)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
bool runIteration(typename Sequence::const_iterator it, int index, T *)
|
bool runIteration(typename Sequence::const_iterator it, int index, T *) override
|
||||||
{
|
{
|
||||||
IntermediateResults<typename Sequence::value_type> results;
|
IntermediateResults<typename Sequence::value_type> results;
|
||||||
results.begin = index;
|
results.begin = index;
|
||||||
@ -109,7 +109,7 @@ public:
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool runIterations(typename Sequence::const_iterator sequenceBeginIterator, int begin, int end, T *)
|
bool runIterations(typename Sequence::const_iterator sequenceBeginIterator, int begin, int end, T *) override
|
||||||
{
|
{
|
||||||
IntermediateResults<typename Sequence::value_type> results;
|
IntermediateResults<typename Sequence::value_type> results;
|
||||||
results.begin = begin;
|
results.begin = begin;
|
||||||
@ -129,18 +129,18 @@ public:
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void finish()
|
void finish() override
|
||||||
{
|
{
|
||||||
reducer.finish(reduce, reducedResult);
|
reducer.finish(reduce, reducedResult);
|
||||||
sequence = reducedResult;
|
sequence = reducedResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool shouldThrottleThread()
|
inline bool shouldThrottleThread() override
|
||||||
{
|
{
|
||||||
return IterateKernelType::shouldThrottleThread() || reducer.shouldThrottle();
|
return IterateKernelType::shouldThrottleThread() || reducer.shouldThrottle();
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool shouldStartThread()
|
inline bool shouldStartThread() override
|
||||||
{
|
{
|
||||||
return IterateKernelType::shouldStartThread() && reducer.shouldStartThread();
|
return IterateKernelType::shouldStartThread() && reducer.shouldStartThread();
|
||||||
}
|
}
|
||||||
@ -183,7 +183,7 @@ public:
|
|||||||
{ }
|
{ }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool runIteration(Iterator it, int index, ReducedResultType *)
|
bool runIteration(Iterator it, int index, ReducedResultType *) override
|
||||||
{
|
{
|
||||||
IntermediateResults<typename qValueType<Iterator>::value_type> results;
|
IntermediateResults<typename qValueType<Iterator>::value_type> results;
|
||||||
results.begin = index;
|
results.begin = index;
|
||||||
@ -196,7 +196,7 @@ public:
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool runIterations(Iterator sequenceBeginIterator, int begin, int end, ReducedResultType *)
|
bool runIterations(Iterator sequenceBeginIterator, int begin, int end, ReducedResultType *) override
|
||||||
{
|
{
|
||||||
IntermediateResults<typename qValueType<Iterator>::value_type> results;
|
IntermediateResults<typename qValueType<Iterator>::value_type> results;
|
||||||
results.begin = begin;
|
results.begin = begin;
|
||||||
@ -215,24 +215,24 @@ public:
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void finish()
|
void finish() override
|
||||||
{
|
{
|
||||||
reducer.finish(reduce, reducedResult);
|
reducer.finish(reduce, reducedResult);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool shouldThrottleThread()
|
inline bool shouldThrottleThread() override
|
||||||
{
|
{
|
||||||
return IterateKernelType::shouldThrottleThread() || reducer.shouldThrottle();
|
return IterateKernelType::shouldThrottleThread() || reducer.shouldThrottle();
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool shouldStartThread()
|
inline bool shouldStartThread() override
|
||||||
{
|
{
|
||||||
return IterateKernelType::shouldStartThread() && reducer.shouldStartThread();
|
return IterateKernelType::shouldStartThread() && reducer.shouldStartThread();
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef ReducedResultType ReturnType;
|
typedef ReducedResultType ReturnType;
|
||||||
typedef ReducedResultType ResultType;
|
typedef ReducedResultType ResultType;
|
||||||
ReducedResultType *result()
|
ReducedResultType *result() override
|
||||||
{
|
{
|
||||||
return &reducedResult;
|
return &reducedResult;
|
||||||
}
|
}
|
||||||
@ -255,14 +255,14 @@ public:
|
|||||||
: IterateKernelType(begin, end), keep(_keep)
|
: IterateKernelType(begin, end), keep(_keep)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
void start()
|
void start() override
|
||||||
{
|
{
|
||||||
if (this->futureInterface)
|
if (this->futureInterface)
|
||||||
this->futureInterface->setFilterMode(true);
|
this->futureInterface->setFilterMode(true);
|
||||||
IterateKernelType::start();
|
IterateKernelType::start();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool runIteration(Iterator it, int index, T *)
|
bool runIteration(Iterator it, int index, T *) override
|
||||||
{
|
{
|
||||||
if (keep(*it))
|
if (keep(*it))
|
||||||
this->reportResult(&(*it), index);
|
this->reportResult(&(*it), index);
|
||||||
@ -271,7 +271,7 @@ public:
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool runIterations(Iterator sequenceBeginIterator, int begin, int end, T *)
|
bool runIterations(Iterator sequenceBeginIterator, int begin, int end, T *) override
|
||||||
{
|
{
|
||||||
const int count = end - begin;
|
const int count = end - begin;
|
||||||
IntermediateResults<typename qValueType<Iterator>::value_type> results;
|
IntermediateResults<typename qValueType<Iterator>::value_type> results;
|
||||||
|
@ -197,14 +197,14 @@ public:
|
|||||||
virtual bool runIterations(Iterator _begin, int beginIndex, int endIndex, T *results)
|
virtual bool runIterations(Iterator _begin, int beginIndex, int endIndex, T *results)
|
||||||
{ Q_UNUSED(_begin); Q_UNUSED(beginIndex); Q_UNUSED(endIndex); Q_UNUSED(results); return false; }
|
{ Q_UNUSED(_begin); Q_UNUSED(beginIndex); Q_UNUSED(endIndex); Q_UNUSED(results); return false; }
|
||||||
|
|
||||||
void start()
|
void start() override
|
||||||
{
|
{
|
||||||
progressReportingEnabled = this->isProgressReportingEnabled();
|
progressReportingEnabled = this->isProgressReportingEnabled();
|
||||||
if (progressReportingEnabled && iterationCount > 0)
|
if (progressReportingEnabled && iterationCount > 0)
|
||||||
this->setProgressRange(0, iterationCount);
|
this->setProgressRange(0, iterationCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool shouldStartThread()
|
bool shouldStartThread() override
|
||||||
{
|
{
|
||||||
if (forIteration)
|
if (forIteration)
|
||||||
return (currentIndex.load() < iterationCount) && !this->shouldThrottleThread();
|
return (currentIndex.load() < iterationCount) && !this->shouldThrottleThread();
|
||||||
@ -212,7 +212,7 @@ public:
|
|||||||
return (iteratorThreads.load() == 0);
|
return (iteratorThreads.load() == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
ThreadFunctionResult threadFunction()
|
ThreadFunctionResult threadFunction() override
|
||||||
{
|
{
|
||||||
if (forIteration)
|
if (forIteration)
|
||||||
return this->forThreadFunction();
|
return this->forThreadFunction();
|
||||||
|
@ -64,13 +64,13 @@ public:
|
|||||||
: IterateKernel<Iterator, void>(begin, end), map(_map)
|
: IterateKernel<Iterator, void>(begin, end), map(_map)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
bool runIteration(Iterator it, int, void *)
|
bool runIteration(Iterator it, int, void *) override
|
||||||
{
|
{
|
||||||
map(*it);
|
map(*it);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool runIterations(Iterator sequenceBeginIterator, int beginIndex, int endIndex, void *)
|
bool runIterations(Iterator sequenceBeginIterator, int beginIndex, int endIndex, void *) override
|
||||||
{
|
{
|
||||||
Iterator it = sequenceBeginIterator;
|
Iterator it = sequenceBeginIterator;
|
||||||
std::advance(it, beginIndex);
|
std::advance(it, beginIndex);
|
||||||
@ -108,7 +108,7 @@ public:
|
|||||||
: reducedResult(initialValue), map(_map), reduce(_reduce)
|
: reducedResult(initialValue), map(_map), reduce(_reduce)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
bool runIteration(Iterator it, int index, ReducedResultType *)
|
bool runIteration(Iterator it, int index, ReducedResultType *) override
|
||||||
{
|
{
|
||||||
IntermediateResults<typename MapFunctor::result_type> results;
|
IntermediateResults<typename MapFunctor::result_type> results;
|
||||||
results.begin = index;
|
results.begin = index;
|
||||||
@ -119,7 +119,7 @@ public:
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool runIterations(Iterator sequenceBeginIterator, int begin, int end, ReducedResultType *)
|
bool runIterations(Iterator sequenceBeginIterator, int begin, int end, ReducedResultType *) override
|
||||||
{
|
{
|
||||||
IntermediateResults<typename MapFunctor::result_type> results;
|
IntermediateResults<typename MapFunctor::result_type> results;
|
||||||
results.begin = begin;
|
results.begin = begin;
|
||||||
@ -137,23 +137,23 @@ public:
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void finish()
|
void finish() override
|
||||||
{
|
{
|
||||||
reducer.finish(reduce, reducedResult);
|
reducer.finish(reduce, reducedResult);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool shouldThrottleThread()
|
bool shouldThrottleThread() override
|
||||||
{
|
{
|
||||||
return IterateKernel<Iterator, ReducedResultType>::shouldThrottleThread() || reducer.shouldThrottle();
|
return IterateKernel<Iterator, ReducedResultType>::shouldThrottleThread() || reducer.shouldThrottle();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool shouldStartThread()
|
bool shouldStartThread() override
|
||||||
{
|
{
|
||||||
return IterateKernel<Iterator, ReducedResultType>::shouldStartThread() && reducer.shouldStartThread();
|
return IterateKernel<Iterator, ReducedResultType>::shouldStartThread() && reducer.shouldStartThread();
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef ReducedResultType ResultType;
|
typedef ReducedResultType ResultType;
|
||||||
ReducedResultType *result()
|
ReducedResultType *result() override
|
||||||
{
|
{
|
||||||
return &reducedResult;
|
return &reducedResult;
|
||||||
}
|
}
|
||||||
@ -171,13 +171,13 @@ public:
|
|||||||
MappedEachKernel(Iterator begin, Iterator end, MapFunctor _map)
|
MappedEachKernel(Iterator begin, Iterator end, MapFunctor _map)
|
||||||
: IterateKernel<Iterator, T>(begin, end), map(_map) { }
|
: IterateKernel<Iterator, T>(begin, end), map(_map) { }
|
||||||
|
|
||||||
bool runIteration(Iterator it, int, T *result)
|
bool runIteration(Iterator it, int, T *result) override
|
||||||
{
|
{
|
||||||
*result = map(*it);
|
*result = map(*it);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool runIterations(Iterator sequenceBeginIterator, int begin, int end, T *results)
|
bool runIterations(Iterator sequenceBeginIterator, int begin, int end, T *results) override
|
||||||
{
|
{
|
||||||
|
|
||||||
Iterator it = sequenceBeginIterator;
|
Iterator it = sequenceBeginIterator;
|
||||||
@ -216,7 +216,7 @@ struct SequenceHolder1 : public Base
|
|||||||
|
|
||||||
Sequence sequence;
|
Sequence sequence;
|
||||||
|
|
||||||
void finish()
|
void finish() override
|
||||||
{
|
{
|
||||||
Base::finish();
|
Base::finish();
|
||||||
// Clear the sequence to make sure all temporaries are destroyed
|
// Clear the sequence to make sure all temporaries are destroyed
|
||||||
|
@ -230,7 +230,7 @@ struct SequenceHolder2 : public Base
|
|||||||
|
|
||||||
Sequence sequence;
|
Sequence sequence;
|
||||||
|
|
||||||
void finish()
|
void finish() override
|
||||||
{
|
{
|
||||||
Base::finish();
|
Base::finish();
|
||||||
// Clear the sequence to make sure all temporaries are destroyed
|
// Clear the sequence to make sure all temporaries are destroyed
|
||||||
|
@ -88,7 +88,7 @@ public:
|
|||||||
return theFuture;
|
return theFuture;
|
||||||
}
|
}
|
||||||
|
|
||||||
void run() {}
|
void run() override {}
|
||||||
virtual void runFunctor() = 0;
|
virtual void runFunctor() = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -96,7 +96,7 @@ template <typename T>
|
|||||||
class RunFunctionTask : public RunFunctionTaskBase<T>
|
class RunFunctionTask : public RunFunctionTaskBase<T>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void run()
|
void run() override
|
||||||
{
|
{
|
||||||
if (this->isCanceled()) {
|
if (this->isCanceled()) {
|
||||||
this->reportFinished();
|
this->reportFinished();
|
||||||
@ -124,7 +124,7 @@ template <>
|
|||||||
class RunFunctionTask<void> : public RunFunctionTaskBase<void>
|
class RunFunctionTask<void> : public RunFunctionTaskBase<void>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void run()
|
void run() override
|
||||||
{
|
{
|
||||||
if (this->isCanceled()) {
|
if (this->isCanceled()) {
|
||||||
this->reportFinished();
|
this->reportFinished();
|
||||||
|
@ -57,7 +57,7 @@ struct StoredFunctorCall0: public RunFunctionTask<T>
|
|||||||
{
|
{
|
||||||
inline StoredFunctorCall0(FunctionPointer _function)
|
inline StoredFunctorCall0(FunctionPointer _function)
|
||||||
: function(_function) {}
|
: function(_function) {}
|
||||||
void runFunctor() { this->result = function(); }
|
void runFunctor() override { this->result = function(); }
|
||||||
FunctionPointer function;
|
FunctionPointer function;
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -67,7 +67,7 @@ struct StoredFunctorCall0<void, FunctionPointer>: public RunFunctionTask<void>
|
|||||||
{
|
{
|
||||||
inline StoredFunctorCall0(FunctionPointer _function)
|
inline StoredFunctorCall0(FunctionPointer _function)
|
||||||
: function(_function) {}
|
: function(_function) {}
|
||||||
void runFunctor() { function(); }
|
void runFunctor() override { function(); }
|
||||||
FunctionPointer function;
|
FunctionPointer function;
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -77,7 +77,7 @@ struct StoredFunctorPointerCall0: public RunFunctionTask<T>
|
|||||||
{
|
{
|
||||||
inline StoredFunctorPointerCall0(FunctionPointer * _function)
|
inline StoredFunctorPointerCall0(FunctionPointer * _function)
|
||||||
: function(_function) {}
|
: function(_function) {}
|
||||||
void runFunctor() { this->result =(*function)(); }
|
void runFunctor() override { this->result =(*function)(); }
|
||||||
FunctionPointer * function;
|
FunctionPointer * function;
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -87,7 +87,7 @@ struct VoidStoredFunctorPointerCall0: public RunFunctionTask<T>
|
|||||||
{
|
{
|
||||||
inline VoidStoredFunctorPointerCall0(FunctionPointer * _function)
|
inline VoidStoredFunctorPointerCall0(FunctionPointer * _function)
|
||||||
: function(_function) {}
|
: function(_function) {}
|
||||||
void runFunctor() {(*function)(); }
|
void runFunctor() override { (*function)(); }
|
||||||
FunctionPointer * function;
|
FunctionPointer * function;
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -106,7 +106,7 @@ public:
|
|||||||
StoredMemberFunctionCall0(T (Class::*_fn)() , const Class &_object)
|
StoredMemberFunctionCall0(T (Class::*_fn)() , const Class &_object)
|
||||||
: fn(_fn), object(_object){ }
|
: fn(_fn), object(_object){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
this->result = (object.*fn)();
|
this->result = (object.*fn)();
|
||||||
}
|
}
|
||||||
@ -122,7 +122,7 @@ public:
|
|||||||
VoidStoredMemberFunctionCall0(T (Class::*_fn)() , const Class &_object)
|
VoidStoredMemberFunctionCall0(T (Class::*_fn)() , const Class &_object)
|
||||||
: fn(_fn), object(_object){ }
|
: fn(_fn), object(_object){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
(object.*fn)();
|
(object.*fn)();
|
||||||
}
|
}
|
||||||
@ -145,7 +145,7 @@ public:
|
|||||||
StoredConstMemberFunctionCall0(T (Class::*_fn)() const, const Class &_object)
|
StoredConstMemberFunctionCall0(T (Class::*_fn)() const, const Class &_object)
|
||||||
: fn(_fn), object(_object){ }
|
: fn(_fn), object(_object){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
this->result = (object.*fn)();
|
this->result = (object.*fn)();
|
||||||
}
|
}
|
||||||
@ -161,7 +161,7 @@ public:
|
|||||||
VoidStoredConstMemberFunctionCall0(T (Class::*_fn)() const, const Class &_object)
|
VoidStoredConstMemberFunctionCall0(T (Class::*_fn)() const, const Class &_object)
|
||||||
: fn(_fn), object(_object){ }
|
: fn(_fn), object(_object){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
(object.*fn)();
|
(object.*fn)();
|
||||||
}
|
}
|
||||||
@ -184,7 +184,7 @@ public:
|
|||||||
StoredMemberFunctionPointerCall0(T (Class::*_fn)() , Class *_object)
|
StoredMemberFunctionPointerCall0(T (Class::*_fn)() , Class *_object)
|
||||||
: fn(_fn), object(_object){ }
|
: fn(_fn), object(_object){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
this->result = (object->*fn)();
|
this->result = (object->*fn)();
|
||||||
}
|
}
|
||||||
@ -200,7 +200,7 @@ public:
|
|||||||
VoidStoredMemberFunctionPointerCall0(T (Class::*_fn)() , Class *_object)
|
VoidStoredMemberFunctionPointerCall0(T (Class::*_fn)() , Class *_object)
|
||||||
: fn(_fn), object(_object){ }
|
: fn(_fn), object(_object){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
(object->*fn)();
|
(object->*fn)();
|
||||||
}
|
}
|
||||||
@ -223,7 +223,7 @@ public:
|
|||||||
StoredConstMemberFunctionPointerCall0(T (Class::*_fn)() const, Class const *_object)
|
StoredConstMemberFunctionPointerCall0(T (Class::*_fn)() const, Class const *_object)
|
||||||
: fn(_fn), object(_object){ }
|
: fn(_fn), object(_object){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
this->result = (object->*fn)();
|
this->result = (object->*fn)();
|
||||||
}
|
}
|
||||||
@ -239,7 +239,7 @@ public:
|
|||||||
VoidStoredConstMemberFunctionPointerCall0(T (Class::*_fn)() const, Class const *_object)
|
VoidStoredConstMemberFunctionPointerCall0(T (Class::*_fn)() const, Class const *_object)
|
||||||
: fn(_fn), object(_object){ }
|
: fn(_fn), object(_object){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
(object->*fn)();
|
(object->*fn)();
|
||||||
}
|
}
|
||||||
@ -260,7 +260,7 @@ struct StoredFunctorCall1: public RunFunctionTask<T>
|
|||||||
{
|
{
|
||||||
inline StoredFunctorCall1(FunctionPointer _function, const Arg1 &_arg1)
|
inline StoredFunctorCall1(FunctionPointer _function, const Arg1 &_arg1)
|
||||||
: function(_function), arg1(_arg1) {}
|
: function(_function), arg1(_arg1) {}
|
||||||
void runFunctor() { this->result = function(arg1); }
|
void runFunctor() override { this->result = function(arg1); }
|
||||||
FunctionPointer function;
|
FunctionPointer function;
|
||||||
Arg1 arg1;
|
Arg1 arg1;
|
||||||
};
|
};
|
||||||
@ -270,7 +270,7 @@ struct StoredFunctorCall1<void, FunctionPointer, Arg1>: public RunFunctionTask<v
|
|||||||
{
|
{
|
||||||
inline StoredFunctorCall1(FunctionPointer _function, const Arg1 &_arg1)
|
inline StoredFunctorCall1(FunctionPointer _function, const Arg1 &_arg1)
|
||||||
: function(_function), arg1(_arg1) {}
|
: function(_function), arg1(_arg1) {}
|
||||||
void runFunctor() { function(arg1); }
|
void runFunctor() override { function(arg1); }
|
||||||
FunctionPointer function;
|
FunctionPointer function;
|
||||||
Arg1 arg1;
|
Arg1 arg1;
|
||||||
};
|
};
|
||||||
@ -280,7 +280,7 @@ struct StoredFunctorPointerCall1: public RunFunctionTask<T>
|
|||||||
{
|
{
|
||||||
inline StoredFunctorPointerCall1(FunctionPointer * _function, const Arg1 &_arg1)
|
inline StoredFunctorPointerCall1(FunctionPointer * _function, const Arg1 &_arg1)
|
||||||
: function(_function), arg1(_arg1) {}
|
: function(_function), arg1(_arg1) {}
|
||||||
void runFunctor() { this->result =(*function)(arg1); }
|
void runFunctor() override { this->result =(*function)(arg1); }
|
||||||
FunctionPointer * function;
|
FunctionPointer * function;
|
||||||
Arg1 arg1;
|
Arg1 arg1;
|
||||||
};
|
};
|
||||||
@ -290,7 +290,7 @@ struct VoidStoredFunctorPointerCall1: public RunFunctionTask<T>
|
|||||||
{
|
{
|
||||||
inline VoidStoredFunctorPointerCall1(FunctionPointer * _function, const Arg1 &_arg1)
|
inline VoidStoredFunctorPointerCall1(FunctionPointer * _function, const Arg1 &_arg1)
|
||||||
: function(_function), arg1(_arg1) {}
|
: function(_function), arg1(_arg1) {}
|
||||||
void runFunctor() {(*function)(arg1); }
|
void runFunctor() override { (*function)(arg1); }
|
||||||
FunctionPointer * function;
|
FunctionPointer * function;
|
||||||
Arg1 arg1;
|
Arg1 arg1;
|
||||||
};
|
};
|
||||||
@ -309,7 +309,7 @@ public:
|
|||||||
StoredMemberFunctionCall1(T (Class::*_fn)(Param1) , const Class &_object, const Arg1 &_arg1)
|
StoredMemberFunctionCall1(T (Class::*_fn)(Param1) , const Class &_object, const Arg1 &_arg1)
|
||||||
: fn(_fn), object(_object), arg1(_arg1){ }
|
: fn(_fn), object(_object), arg1(_arg1){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
this->result = (object.*fn)(arg1);
|
this->result = (object.*fn)(arg1);
|
||||||
}
|
}
|
||||||
@ -325,7 +325,7 @@ public:
|
|||||||
VoidStoredMemberFunctionCall1(T (Class::*_fn)(Param1) , const Class &_object, const Arg1 &_arg1)
|
VoidStoredMemberFunctionCall1(T (Class::*_fn)(Param1) , const Class &_object, const Arg1 &_arg1)
|
||||||
: fn(_fn), object(_object), arg1(_arg1){ }
|
: fn(_fn), object(_object), arg1(_arg1){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
(object.*fn)(arg1);
|
(object.*fn)(arg1);
|
||||||
}
|
}
|
||||||
@ -348,7 +348,7 @@ public:
|
|||||||
StoredConstMemberFunctionCall1(T (Class::*_fn)(Param1) const, const Class &_object, const Arg1 &_arg1)
|
StoredConstMemberFunctionCall1(T (Class::*_fn)(Param1) const, const Class &_object, const Arg1 &_arg1)
|
||||||
: fn(_fn), object(_object), arg1(_arg1){ }
|
: fn(_fn), object(_object), arg1(_arg1){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
this->result = (object.*fn)(arg1);
|
this->result = (object.*fn)(arg1);
|
||||||
}
|
}
|
||||||
@ -364,7 +364,7 @@ public:
|
|||||||
VoidStoredConstMemberFunctionCall1(T (Class::*_fn)(Param1) const, const Class &_object, const Arg1 &_arg1)
|
VoidStoredConstMemberFunctionCall1(T (Class::*_fn)(Param1) const, const Class &_object, const Arg1 &_arg1)
|
||||||
: fn(_fn), object(_object), arg1(_arg1){ }
|
: fn(_fn), object(_object), arg1(_arg1){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
(object.*fn)(arg1);
|
(object.*fn)(arg1);
|
||||||
}
|
}
|
||||||
@ -387,7 +387,7 @@ public:
|
|||||||
StoredMemberFunctionPointerCall1(T (Class::*_fn)(Param1) , Class *_object, const Arg1 &_arg1)
|
StoredMemberFunctionPointerCall1(T (Class::*_fn)(Param1) , Class *_object, const Arg1 &_arg1)
|
||||||
: fn(_fn), object(_object), arg1(_arg1){ }
|
: fn(_fn), object(_object), arg1(_arg1){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
this->result = (object->*fn)(arg1);
|
this->result = (object->*fn)(arg1);
|
||||||
}
|
}
|
||||||
@ -403,7 +403,7 @@ public:
|
|||||||
VoidStoredMemberFunctionPointerCall1(T (Class::*_fn)(Param1) , Class *_object, const Arg1 &_arg1)
|
VoidStoredMemberFunctionPointerCall1(T (Class::*_fn)(Param1) , Class *_object, const Arg1 &_arg1)
|
||||||
: fn(_fn), object(_object), arg1(_arg1){ }
|
: fn(_fn), object(_object), arg1(_arg1){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
(object->*fn)(arg1);
|
(object->*fn)(arg1);
|
||||||
}
|
}
|
||||||
@ -426,7 +426,7 @@ public:
|
|||||||
StoredConstMemberFunctionPointerCall1(T (Class::*_fn)(Param1) const, Class const *_object, const Arg1 &_arg1)
|
StoredConstMemberFunctionPointerCall1(T (Class::*_fn)(Param1) const, Class const *_object, const Arg1 &_arg1)
|
||||||
: fn(_fn), object(_object), arg1(_arg1){ }
|
: fn(_fn), object(_object), arg1(_arg1){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
this->result = (object->*fn)(arg1);
|
this->result = (object->*fn)(arg1);
|
||||||
}
|
}
|
||||||
@ -442,7 +442,7 @@ public:
|
|||||||
VoidStoredConstMemberFunctionPointerCall1(T (Class::*_fn)(Param1) const, Class const *_object, const Arg1 &_arg1)
|
VoidStoredConstMemberFunctionPointerCall1(T (Class::*_fn)(Param1) const, Class const *_object, const Arg1 &_arg1)
|
||||||
: fn(_fn), object(_object), arg1(_arg1){ }
|
: fn(_fn), object(_object), arg1(_arg1){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
(object->*fn)(arg1);
|
(object->*fn)(arg1);
|
||||||
}
|
}
|
||||||
@ -463,7 +463,7 @@ struct StoredFunctorCall2: public RunFunctionTask<T>
|
|||||||
{
|
{
|
||||||
inline StoredFunctorCall2(FunctionPointer _function, const Arg1 &_arg1, const Arg2 &_arg2)
|
inline StoredFunctorCall2(FunctionPointer _function, const Arg1 &_arg1, const Arg2 &_arg2)
|
||||||
: function(_function), arg1(_arg1), arg2(_arg2) {}
|
: function(_function), arg1(_arg1), arg2(_arg2) {}
|
||||||
void runFunctor() { this->result = function(arg1, arg2); }
|
void runFunctor() override { this->result = function(arg1, arg2); }
|
||||||
FunctionPointer function;
|
FunctionPointer function;
|
||||||
Arg1 arg1; Arg2 arg2;
|
Arg1 arg1; Arg2 arg2;
|
||||||
};
|
};
|
||||||
@ -473,7 +473,7 @@ struct StoredFunctorCall2<void, FunctionPointer, Arg1, Arg2>: public RunFunction
|
|||||||
{
|
{
|
||||||
inline StoredFunctorCall2(FunctionPointer _function, const Arg1 &_arg1, const Arg2 &_arg2)
|
inline StoredFunctorCall2(FunctionPointer _function, const Arg1 &_arg1, const Arg2 &_arg2)
|
||||||
: function(_function), arg1(_arg1), arg2(_arg2) {}
|
: function(_function), arg1(_arg1), arg2(_arg2) {}
|
||||||
void runFunctor() { function(arg1, arg2); }
|
void runFunctor() override { function(arg1, arg2); }
|
||||||
FunctionPointer function;
|
FunctionPointer function;
|
||||||
Arg1 arg1; Arg2 arg2;
|
Arg1 arg1; Arg2 arg2;
|
||||||
};
|
};
|
||||||
@ -483,7 +483,7 @@ struct StoredFunctorPointerCall2: public RunFunctionTask<T>
|
|||||||
{
|
{
|
||||||
inline StoredFunctorPointerCall2(FunctionPointer * _function, const Arg1 &_arg1, const Arg2 &_arg2)
|
inline StoredFunctorPointerCall2(FunctionPointer * _function, const Arg1 &_arg1, const Arg2 &_arg2)
|
||||||
: function(_function), arg1(_arg1), arg2(_arg2) {}
|
: function(_function), arg1(_arg1), arg2(_arg2) {}
|
||||||
void runFunctor() { this->result =(*function)(arg1, arg2); }
|
void runFunctor() override { this->result =(*function)(arg1, arg2); }
|
||||||
FunctionPointer * function;
|
FunctionPointer * function;
|
||||||
Arg1 arg1; Arg2 arg2;
|
Arg1 arg1; Arg2 arg2;
|
||||||
};
|
};
|
||||||
@ -493,7 +493,7 @@ struct VoidStoredFunctorPointerCall2: public RunFunctionTask<T>
|
|||||||
{
|
{
|
||||||
inline VoidStoredFunctorPointerCall2(FunctionPointer * _function, const Arg1 &_arg1, const Arg2 &_arg2)
|
inline VoidStoredFunctorPointerCall2(FunctionPointer * _function, const Arg1 &_arg1, const Arg2 &_arg2)
|
||||||
: function(_function), arg1(_arg1), arg2(_arg2) {}
|
: function(_function), arg1(_arg1), arg2(_arg2) {}
|
||||||
void runFunctor() {(*function)(arg1, arg2); }
|
void runFunctor() override { (*function)(arg1, arg2); }
|
||||||
FunctionPointer * function;
|
FunctionPointer * function;
|
||||||
Arg1 arg1; Arg2 arg2;
|
Arg1 arg1; Arg2 arg2;
|
||||||
};
|
};
|
||||||
@ -512,7 +512,7 @@ public:
|
|||||||
StoredMemberFunctionCall2(T (Class::*_fn)(Param1, Param2) , const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2)
|
StoredMemberFunctionCall2(T (Class::*_fn)(Param1, Param2) , const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
this->result = (object.*fn)(arg1, arg2);
|
this->result = (object.*fn)(arg1, arg2);
|
||||||
}
|
}
|
||||||
@ -528,7 +528,7 @@ public:
|
|||||||
VoidStoredMemberFunctionCall2(T (Class::*_fn)(Param1, Param2) , const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2)
|
VoidStoredMemberFunctionCall2(T (Class::*_fn)(Param1, Param2) , const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
(object.*fn)(arg1, arg2);
|
(object.*fn)(arg1, arg2);
|
||||||
}
|
}
|
||||||
@ -551,7 +551,7 @@ public:
|
|||||||
StoredConstMemberFunctionCall2(T (Class::*_fn)(Param1, Param2) const, const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2)
|
StoredConstMemberFunctionCall2(T (Class::*_fn)(Param1, Param2) const, const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
this->result = (object.*fn)(arg1, arg2);
|
this->result = (object.*fn)(arg1, arg2);
|
||||||
}
|
}
|
||||||
@ -567,7 +567,7 @@ public:
|
|||||||
VoidStoredConstMemberFunctionCall2(T (Class::*_fn)(Param1, Param2) const, const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2)
|
VoidStoredConstMemberFunctionCall2(T (Class::*_fn)(Param1, Param2) const, const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
(object.*fn)(arg1, arg2);
|
(object.*fn)(arg1, arg2);
|
||||||
}
|
}
|
||||||
@ -590,7 +590,7 @@ public:
|
|||||||
StoredMemberFunctionPointerCall2(T (Class::*_fn)(Param1, Param2) , Class *_object, const Arg1 &_arg1, const Arg2 &_arg2)
|
StoredMemberFunctionPointerCall2(T (Class::*_fn)(Param1, Param2) , Class *_object, const Arg1 &_arg1, const Arg2 &_arg2)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
this->result = (object->*fn)(arg1, arg2);
|
this->result = (object->*fn)(arg1, arg2);
|
||||||
}
|
}
|
||||||
@ -606,7 +606,7 @@ public:
|
|||||||
VoidStoredMemberFunctionPointerCall2(T (Class::*_fn)(Param1, Param2) , Class *_object, const Arg1 &_arg1, const Arg2 &_arg2)
|
VoidStoredMemberFunctionPointerCall2(T (Class::*_fn)(Param1, Param2) , Class *_object, const Arg1 &_arg1, const Arg2 &_arg2)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
(object->*fn)(arg1, arg2);
|
(object->*fn)(arg1, arg2);
|
||||||
}
|
}
|
||||||
@ -629,7 +629,7 @@ public:
|
|||||||
StoredConstMemberFunctionPointerCall2(T (Class::*_fn)(Param1, Param2) const, Class const *_object, const Arg1 &_arg1, const Arg2 &_arg2)
|
StoredConstMemberFunctionPointerCall2(T (Class::*_fn)(Param1, Param2) const, Class const *_object, const Arg1 &_arg1, const Arg2 &_arg2)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
this->result = (object->*fn)(arg1, arg2);
|
this->result = (object->*fn)(arg1, arg2);
|
||||||
}
|
}
|
||||||
@ -645,7 +645,7 @@ public:
|
|||||||
VoidStoredConstMemberFunctionPointerCall2(T (Class::*_fn)(Param1, Param2) const, Class const *_object, const Arg1 &_arg1, const Arg2 &_arg2)
|
VoidStoredConstMemberFunctionPointerCall2(T (Class::*_fn)(Param1, Param2) const, Class const *_object, const Arg1 &_arg1, const Arg2 &_arg2)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
(object->*fn)(arg1, arg2);
|
(object->*fn)(arg1, arg2);
|
||||||
}
|
}
|
||||||
@ -666,7 +666,7 @@ struct StoredFunctorCall3: public RunFunctionTask<T>
|
|||||||
{
|
{
|
||||||
inline StoredFunctorCall3(FunctionPointer _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3)
|
inline StoredFunctorCall3(FunctionPointer _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3)
|
||||||
: function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3) {}
|
: function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3) {}
|
||||||
void runFunctor() { this->result = function(arg1, arg2, arg3); }
|
void runFunctor() override { this->result = function(arg1, arg2, arg3); }
|
||||||
FunctionPointer function;
|
FunctionPointer function;
|
||||||
Arg1 arg1; Arg2 arg2; Arg3 arg3;
|
Arg1 arg1; Arg2 arg2; Arg3 arg3;
|
||||||
};
|
};
|
||||||
@ -676,7 +676,7 @@ struct StoredFunctorCall3<void, FunctionPointer, Arg1, Arg2, Arg3>: public RunFu
|
|||||||
{
|
{
|
||||||
inline StoredFunctorCall3(FunctionPointer _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3)
|
inline StoredFunctorCall3(FunctionPointer _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3)
|
||||||
: function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3) {}
|
: function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3) {}
|
||||||
void runFunctor() { function(arg1, arg2, arg3); }
|
void runFunctor() override { function(arg1, arg2, arg3); }
|
||||||
FunctionPointer function;
|
FunctionPointer function;
|
||||||
Arg1 arg1; Arg2 arg2; Arg3 arg3;
|
Arg1 arg1; Arg2 arg2; Arg3 arg3;
|
||||||
};
|
};
|
||||||
@ -686,7 +686,7 @@ struct StoredFunctorPointerCall3: public RunFunctionTask<T>
|
|||||||
{
|
{
|
||||||
inline StoredFunctorPointerCall3(FunctionPointer * _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3)
|
inline StoredFunctorPointerCall3(FunctionPointer * _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3)
|
||||||
: function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3) {}
|
: function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3) {}
|
||||||
void runFunctor() { this->result =(*function)(arg1, arg2, arg3); }
|
void runFunctor() override { this->result =(*function)(arg1, arg2, arg3); }
|
||||||
FunctionPointer * function;
|
FunctionPointer * function;
|
||||||
Arg1 arg1; Arg2 arg2; Arg3 arg3;
|
Arg1 arg1; Arg2 arg2; Arg3 arg3;
|
||||||
};
|
};
|
||||||
@ -696,7 +696,7 @@ struct VoidStoredFunctorPointerCall3: public RunFunctionTask<T>
|
|||||||
{
|
{
|
||||||
inline VoidStoredFunctorPointerCall3(FunctionPointer * _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3)
|
inline VoidStoredFunctorPointerCall3(FunctionPointer * _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3)
|
||||||
: function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3) {}
|
: function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3) {}
|
||||||
void runFunctor() {(*function)(arg1, arg2, arg3); }
|
void runFunctor() override { (*function)(arg1, arg2, arg3); }
|
||||||
FunctionPointer * function;
|
FunctionPointer * function;
|
||||||
Arg1 arg1; Arg2 arg2; Arg3 arg3;
|
Arg1 arg1; Arg2 arg2; Arg3 arg3;
|
||||||
};
|
};
|
||||||
@ -715,7 +715,7 @@ public:
|
|||||||
StoredMemberFunctionCall3(T (Class::*_fn)(Param1, Param2, Param3) , const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3)
|
StoredMemberFunctionCall3(T (Class::*_fn)(Param1, Param2, Param3) , const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
this->result = (object.*fn)(arg1, arg2, arg3);
|
this->result = (object.*fn)(arg1, arg2, arg3);
|
||||||
}
|
}
|
||||||
@ -731,7 +731,7 @@ public:
|
|||||||
VoidStoredMemberFunctionCall3(T (Class::*_fn)(Param1, Param2, Param3) , const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3)
|
VoidStoredMemberFunctionCall3(T (Class::*_fn)(Param1, Param2, Param3) , const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
(object.*fn)(arg1, arg2, arg3);
|
(object.*fn)(arg1, arg2, arg3);
|
||||||
}
|
}
|
||||||
@ -754,7 +754,7 @@ public:
|
|||||||
StoredConstMemberFunctionCall3(T (Class::*_fn)(Param1, Param2, Param3) const, const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3)
|
StoredConstMemberFunctionCall3(T (Class::*_fn)(Param1, Param2, Param3) const, const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
this->result = (object.*fn)(arg1, arg2, arg3);
|
this->result = (object.*fn)(arg1, arg2, arg3);
|
||||||
}
|
}
|
||||||
@ -770,7 +770,7 @@ public:
|
|||||||
VoidStoredConstMemberFunctionCall3(T (Class::*_fn)(Param1, Param2, Param3) const, const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3)
|
VoidStoredConstMemberFunctionCall3(T (Class::*_fn)(Param1, Param2, Param3) const, const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
(object.*fn)(arg1, arg2, arg3);
|
(object.*fn)(arg1, arg2, arg3);
|
||||||
}
|
}
|
||||||
@ -793,7 +793,7 @@ public:
|
|||||||
StoredMemberFunctionPointerCall3(T (Class::*_fn)(Param1, Param2, Param3) , Class *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3)
|
StoredMemberFunctionPointerCall3(T (Class::*_fn)(Param1, Param2, Param3) , Class *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
this->result = (object->*fn)(arg1, arg2, arg3);
|
this->result = (object->*fn)(arg1, arg2, arg3);
|
||||||
}
|
}
|
||||||
@ -809,7 +809,7 @@ public:
|
|||||||
VoidStoredMemberFunctionPointerCall3(T (Class::*_fn)(Param1, Param2, Param3) , Class *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3)
|
VoidStoredMemberFunctionPointerCall3(T (Class::*_fn)(Param1, Param2, Param3) , Class *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
(object->*fn)(arg1, arg2, arg3);
|
(object->*fn)(arg1, arg2, arg3);
|
||||||
}
|
}
|
||||||
@ -832,7 +832,7 @@ public:
|
|||||||
StoredConstMemberFunctionPointerCall3(T (Class::*_fn)(Param1, Param2, Param3) const, Class const *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3)
|
StoredConstMemberFunctionPointerCall3(T (Class::*_fn)(Param1, Param2, Param3) const, Class const *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
this->result = (object->*fn)(arg1, arg2, arg3);
|
this->result = (object->*fn)(arg1, arg2, arg3);
|
||||||
}
|
}
|
||||||
@ -848,7 +848,7 @@ public:
|
|||||||
VoidStoredConstMemberFunctionPointerCall3(T (Class::*_fn)(Param1, Param2, Param3) const, Class const *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3)
|
VoidStoredConstMemberFunctionPointerCall3(T (Class::*_fn)(Param1, Param2, Param3) const, Class const *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
(object->*fn)(arg1, arg2, arg3);
|
(object->*fn)(arg1, arg2, arg3);
|
||||||
}
|
}
|
||||||
@ -869,7 +869,7 @@ struct StoredFunctorCall4: public RunFunctionTask<T>
|
|||||||
{
|
{
|
||||||
inline StoredFunctorCall4(FunctionPointer _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4)
|
inline StoredFunctorCall4(FunctionPointer _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4)
|
||||||
: function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4) {}
|
: function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4) {}
|
||||||
void runFunctor() { this->result = function(arg1, arg2, arg3, arg4); }
|
void runFunctor() override { this->result = function(arg1, arg2, arg3, arg4); }
|
||||||
FunctionPointer function;
|
FunctionPointer function;
|
||||||
Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4;
|
Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4;
|
||||||
};
|
};
|
||||||
@ -879,7 +879,7 @@ struct StoredFunctorCall4<void, FunctionPointer, Arg1, Arg2, Arg3, Arg4>: public
|
|||||||
{
|
{
|
||||||
inline StoredFunctorCall4(FunctionPointer _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4)
|
inline StoredFunctorCall4(FunctionPointer _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4)
|
||||||
: function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4) {}
|
: function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4) {}
|
||||||
void runFunctor() { function(arg1, arg2, arg3, arg4); }
|
void runFunctor() override { function(arg1, arg2, arg3, arg4); }
|
||||||
FunctionPointer function;
|
FunctionPointer function;
|
||||||
Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4;
|
Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4;
|
||||||
};
|
};
|
||||||
@ -889,7 +889,7 @@ struct StoredFunctorPointerCall4: public RunFunctionTask<T>
|
|||||||
{
|
{
|
||||||
inline StoredFunctorPointerCall4(FunctionPointer * _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4)
|
inline StoredFunctorPointerCall4(FunctionPointer * _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4)
|
||||||
: function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4) {}
|
: function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4) {}
|
||||||
void runFunctor() { this->result =(*function)(arg1, arg2, arg3, arg4); }
|
void runFunctor() override { this->result =(*function)(arg1, arg2, arg3, arg4); }
|
||||||
FunctionPointer * function;
|
FunctionPointer * function;
|
||||||
Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4;
|
Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4;
|
||||||
};
|
};
|
||||||
@ -899,7 +899,7 @@ struct VoidStoredFunctorPointerCall4: public RunFunctionTask<T>
|
|||||||
{
|
{
|
||||||
inline VoidStoredFunctorPointerCall4(FunctionPointer * _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4)
|
inline VoidStoredFunctorPointerCall4(FunctionPointer * _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4)
|
||||||
: function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4) {}
|
: function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4) {}
|
||||||
void runFunctor() {(*function)(arg1, arg2, arg3, arg4); }
|
void runFunctor() override { (*function)(arg1, arg2, arg3, arg4); }
|
||||||
FunctionPointer * function;
|
FunctionPointer * function;
|
||||||
Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4;
|
Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4;
|
||||||
};
|
};
|
||||||
@ -918,7 +918,7 @@ public:
|
|||||||
StoredMemberFunctionCall4(T (Class::*_fn)(Param1, Param2, Param3, Param4) , const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4)
|
StoredMemberFunctionCall4(T (Class::*_fn)(Param1, Param2, Param3, Param4) , const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
this->result = (object.*fn)(arg1, arg2, arg3, arg4);
|
this->result = (object.*fn)(arg1, arg2, arg3, arg4);
|
||||||
}
|
}
|
||||||
@ -934,7 +934,7 @@ public:
|
|||||||
VoidStoredMemberFunctionCall4(T (Class::*_fn)(Param1, Param2, Param3, Param4) , const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4)
|
VoidStoredMemberFunctionCall4(T (Class::*_fn)(Param1, Param2, Param3, Param4) , const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
(object.*fn)(arg1, arg2, arg3, arg4);
|
(object.*fn)(arg1, arg2, arg3, arg4);
|
||||||
}
|
}
|
||||||
@ -957,7 +957,7 @@ public:
|
|||||||
StoredConstMemberFunctionCall4(T (Class::*_fn)(Param1, Param2, Param3, Param4) const, const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4)
|
StoredConstMemberFunctionCall4(T (Class::*_fn)(Param1, Param2, Param3, Param4) const, const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
this->result = (object.*fn)(arg1, arg2, arg3, arg4);
|
this->result = (object.*fn)(arg1, arg2, arg3, arg4);
|
||||||
}
|
}
|
||||||
@ -973,7 +973,7 @@ public:
|
|||||||
VoidStoredConstMemberFunctionCall4(T (Class::*_fn)(Param1, Param2, Param3, Param4) const, const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4)
|
VoidStoredConstMemberFunctionCall4(T (Class::*_fn)(Param1, Param2, Param3, Param4) const, const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
(object.*fn)(arg1, arg2, arg3, arg4);
|
(object.*fn)(arg1, arg2, arg3, arg4);
|
||||||
}
|
}
|
||||||
@ -996,7 +996,7 @@ public:
|
|||||||
StoredMemberFunctionPointerCall4(T (Class::*_fn)(Param1, Param2, Param3, Param4) , Class *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4)
|
StoredMemberFunctionPointerCall4(T (Class::*_fn)(Param1, Param2, Param3, Param4) , Class *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
this->result = (object->*fn)(arg1, arg2, arg3, arg4);
|
this->result = (object->*fn)(arg1, arg2, arg3, arg4);
|
||||||
}
|
}
|
||||||
@ -1012,7 +1012,7 @@ public:
|
|||||||
VoidStoredMemberFunctionPointerCall4(T (Class::*_fn)(Param1, Param2, Param3, Param4) , Class *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4)
|
VoidStoredMemberFunctionPointerCall4(T (Class::*_fn)(Param1, Param2, Param3, Param4) , Class *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
(object->*fn)(arg1, arg2, arg3, arg4);
|
(object->*fn)(arg1, arg2, arg3, arg4);
|
||||||
}
|
}
|
||||||
@ -1035,7 +1035,7 @@ public:
|
|||||||
StoredConstMemberFunctionPointerCall4(T (Class::*_fn)(Param1, Param2, Param3, Param4) const, Class const *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4)
|
StoredConstMemberFunctionPointerCall4(T (Class::*_fn)(Param1, Param2, Param3, Param4) const, Class const *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
this->result = (object->*fn)(arg1, arg2, arg3, arg4);
|
this->result = (object->*fn)(arg1, arg2, arg3, arg4);
|
||||||
}
|
}
|
||||||
@ -1051,7 +1051,7 @@ public:
|
|||||||
VoidStoredConstMemberFunctionPointerCall4(T (Class::*_fn)(Param1, Param2, Param3, Param4) const, Class const *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4)
|
VoidStoredConstMemberFunctionPointerCall4(T (Class::*_fn)(Param1, Param2, Param3, Param4) const, Class const *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
(object->*fn)(arg1, arg2, arg3, arg4);
|
(object->*fn)(arg1, arg2, arg3, arg4);
|
||||||
}
|
}
|
||||||
@ -1072,7 +1072,7 @@ struct StoredFunctorCall5: public RunFunctionTask<T>
|
|||||||
{
|
{
|
||||||
inline StoredFunctorCall5(FunctionPointer _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5)
|
inline StoredFunctorCall5(FunctionPointer _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5)
|
||||||
: function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5) {}
|
: function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5) {}
|
||||||
void runFunctor() { this->result = function(arg1, arg2, arg3, arg4, arg5); }
|
void runFunctor() override { this->result = function(arg1, arg2, arg3, arg4, arg5); }
|
||||||
FunctionPointer function;
|
FunctionPointer function;
|
||||||
Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; Arg5 arg5;
|
Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; Arg5 arg5;
|
||||||
};
|
};
|
||||||
@ -1082,7 +1082,7 @@ struct StoredFunctorCall5<void, FunctionPointer, Arg1, Arg2, Arg3, Arg4, Arg5>:
|
|||||||
{
|
{
|
||||||
inline StoredFunctorCall5(FunctionPointer _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5)
|
inline StoredFunctorCall5(FunctionPointer _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5)
|
||||||
: function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5) {}
|
: function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5) {}
|
||||||
void runFunctor() { function(arg1, arg2, arg3, arg4, arg5); }
|
void runFunctor() override { function(arg1, arg2, arg3, arg4, arg5); }
|
||||||
FunctionPointer function;
|
FunctionPointer function;
|
||||||
Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; Arg5 arg5;
|
Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; Arg5 arg5;
|
||||||
};
|
};
|
||||||
@ -1092,7 +1092,7 @@ struct StoredFunctorPointerCall5: public RunFunctionTask<T>
|
|||||||
{
|
{
|
||||||
inline StoredFunctorPointerCall5(FunctionPointer * _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5)
|
inline StoredFunctorPointerCall5(FunctionPointer * _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5)
|
||||||
: function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5) {}
|
: function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5) {}
|
||||||
void runFunctor() { this->result =(*function)(arg1, arg2, arg3, arg4, arg5); }
|
void runFunctor() override { this->result =(*function)(arg1, arg2, arg3, arg4, arg5); }
|
||||||
FunctionPointer * function;
|
FunctionPointer * function;
|
||||||
Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; Arg5 arg5;
|
Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; Arg5 arg5;
|
||||||
};
|
};
|
||||||
@ -1102,7 +1102,7 @@ struct VoidStoredFunctorPointerCall5: public RunFunctionTask<T>
|
|||||||
{
|
{
|
||||||
inline VoidStoredFunctorPointerCall5(FunctionPointer * _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5)
|
inline VoidStoredFunctorPointerCall5(FunctionPointer * _function, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5)
|
||||||
: function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5) {}
|
: function(_function), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5) {}
|
||||||
void runFunctor() {(*function)(arg1, arg2, arg3, arg4, arg5); }
|
void runFunctor() override {(*function)(arg1, arg2, arg3, arg4, arg5); }
|
||||||
FunctionPointer * function;
|
FunctionPointer * function;
|
||||||
Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; Arg5 arg5;
|
Arg1 arg1; Arg2 arg2; Arg3 arg3; Arg4 arg4; Arg5 arg5;
|
||||||
};
|
};
|
||||||
@ -1121,7 +1121,7 @@ public:
|
|||||||
StoredMemberFunctionCall5(T (Class::*_fn)(Param1, Param2, Param3, Param4, Param5) , const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5)
|
StoredMemberFunctionCall5(T (Class::*_fn)(Param1, Param2, Param3, Param4, Param5) , const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
this->result = (object.*fn)(arg1, arg2, arg3, arg4, arg5);
|
this->result = (object.*fn)(arg1, arg2, arg3, arg4, arg5);
|
||||||
}
|
}
|
||||||
@ -1137,7 +1137,7 @@ public:
|
|||||||
VoidStoredMemberFunctionCall5(T (Class::*_fn)(Param1, Param2, Param3, Param4, Param5) , const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5)
|
VoidStoredMemberFunctionCall5(T (Class::*_fn)(Param1, Param2, Param3, Param4, Param5) , const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
(object.*fn)(arg1, arg2, arg3, arg4, arg5);
|
(object.*fn)(arg1, arg2, arg3, arg4, arg5);
|
||||||
}
|
}
|
||||||
@ -1160,7 +1160,7 @@ public:
|
|||||||
StoredConstMemberFunctionCall5(T (Class::*_fn)(Param1, Param2, Param3, Param4, Param5) const, const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5)
|
StoredConstMemberFunctionCall5(T (Class::*_fn)(Param1, Param2, Param3, Param4, Param5) const, const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
this->result = (object.*fn)(arg1, arg2, arg3, arg4, arg5);
|
this->result = (object.*fn)(arg1, arg2, arg3, arg4, arg5);
|
||||||
}
|
}
|
||||||
@ -1176,7 +1176,7 @@ public:
|
|||||||
VoidStoredConstMemberFunctionCall5(T (Class::*_fn)(Param1, Param2, Param3, Param4, Param5) const, const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5)
|
VoidStoredConstMemberFunctionCall5(T (Class::*_fn)(Param1, Param2, Param3, Param4, Param5) const, const Class &_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
(object.*fn)(arg1, arg2, arg3, arg4, arg5);
|
(object.*fn)(arg1, arg2, arg3, arg4, arg5);
|
||||||
}
|
}
|
||||||
@ -1199,7 +1199,7 @@ public:
|
|||||||
StoredMemberFunctionPointerCall5(T (Class::*_fn)(Param1, Param2, Param3, Param4, Param5) , Class *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5)
|
StoredMemberFunctionPointerCall5(T (Class::*_fn)(Param1, Param2, Param3, Param4, Param5) , Class *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
this->result = (object->*fn)(arg1, arg2, arg3, arg4, arg5);
|
this->result = (object->*fn)(arg1, arg2, arg3, arg4, arg5);
|
||||||
}
|
}
|
||||||
@ -1215,7 +1215,7 @@ public:
|
|||||||
VoidStoredMemberFunctionPointerCall5(T (Class::*_fn)(Param1, Param2, Param3, Param4, Param5) , Class *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5)
|
VoidStoredMemberFunctionPointerCall5(T (Class::*_fn)(Param1, Param2, Param3, Param4, Param5) , Class *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
(object->*fn)(arg1, arg2, arg3, arg4, arg5);
|
(object->*fn)(arg1, arg2, arg3, arg4, arg5);
|
||||||
}
|
}
|
||||||
@ -1238,7 +1238,7 @@ public:
|
|||||||
StoredConstMemberFunctionPointerCall5(T (Class::*_fn)(Param1, Param2, Param3, Param4, Param5) const, Class const *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5)
|
StoredConstMemberFunctionPointerCall5(T (Class::*_fn)(Param1, Param2, Param3, Param4, Param5) const, Class const *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
this->result = (object->*fn)(arg1, arg2, arg3, arg4, arg5);
|
this->result = (object->*fn)(arg1, arg2, arg3, arg4, arg5);
|
||||||
}
|
}
|
||||||
@ -1254,7 +1254,7 @@ public:
|
|||||||
VoidStoredConstMemberFunctionPointerCall5(T (Class::*_fn)(Param1, Param2, Param3, Param4, Param5) const, Class const *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5)
|
VoidStoredConstMemberFunctionPointerCall5(T (Class::*_fn)(Param1, Param2, Param3, Param4, Param5) const, Class const *_object, const Arg1 &_arg1, const Arg2 &_arg2, const Arg3 &_arg3, const Arg4 &_arg4, const Arg5 &_arg5)
|
||||||
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5){ }
|
: fn(_fn), object(_object), arg1(_arg1), arg2(_arg2), arg3(_arg3), arg4(_arg4), arg5(_arg5){ }
|
||||||
|
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
(object->*fn)(arg1, arg2, arg3, arg4, arg5);
|
(object->*fn)(arg1, arg2, arg3, arg4, arg5);
|
||||||
}
|
}
|
||||||
@ -1276,7 +1276,7 @@ class StoredFunctorCall : public RunFunctionTask<T>
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
StoredFunctorCall(const Functor &f) : functor(f) { }
|
StoredFunctorCall(const Functor &f) : functor(f) { }
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
this->result = functor();
|
this->result = functor();
|
||||||
}
|
}
|
||||||
@ -1288,7 +1288,7 @@ class StoredFunctorCall<void, Functor> : public RunFunctionTask<void>
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
StoredFunctorCall(const Functor &f) : functor(f) { }
|
StoredFunctorCall(const Functor &f) : functor(f) { }
|
||||||
void runFunctor()
|
void runFunctor() override
|
||||||
{
|
{
|
||||||
functor();
|
functor();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user