carb::tasking::RequiredObject
Defined in carb/tasking/TaskingHelpers.h
-
struct RequiredObject : public carb::tasking::Object
Helper class to ensure correct compliance with the requiredObject parameter of ITasking::add[Throttled]SubTask() and wait() functions.
The following may be converted into a RequiredObject: TaskContext, Future, Any, All, Counter*, or CounterWrapper.
Public Functions
-
template<class T, std::enable_if_t<std::is_convertible<T, Counter*>::value, bool> = false>
inline constexpr RequiredObject(T &&c) Constructor that accepts an object that can be converted to Counter*.
- Parameters
c – An object convertible to Counter*. This can be Any, All, Counter* or CounterWrapper.
Public Members
-
ObjectType type
The ObjectType of the represented type.
-
void *data
Interpreted based on the ObjectType provided.
-
template<class T, std::enable_if_t<std::is_convertible<T, Counter*>::value, bool> = false>