carb::tasking::Trackers

Defined in carb/tasking/TaskingHelpers.h

struct Trackers

Helper class to ensure correct compliance with trackers parameter of ITasking::addTask() variants.

Public Functions

inline constexpr Trackers()

Default constructor.

template<class T, std::enable_if_t<std::is_constructible<Tracker, T>::value, bool> = false>
inline constexpr Trackers(T &&t)

Constructor that accepts a single Tracker.

Parameters

t – The type passed to the Tracker constructor.

inline constexpr Trackers(std::initializer_list<Tracker> il)

Constructor that accepts an initializer_list of Tracker objects.

Parameters

il – The std::initializer_list of Tracker objects.

inline Trackers(std::initializer_list<Tracker> il, Tracker const *p, size_t count)

Constructor that accepts an initializer_list of Tracker objects and additional Tracker objects.

Parameters
  • il – The std::initializer_list of Tracker objects.

  • p – A pointer to additional Tracker objects; size specified by count.

  • count – The number of additional Tracker objects in the list specified by p.

inline void output(Tracker const *&trackers, size_t &count) const

Retrieves a list of Tracker objects managed by this helper object.

Parameters
  • trackers – Receives a pointer to a list of Tracker objects.

  • count – Receives the count of Tracker objects.

Trackers(Trackers&&) = default

Trackers is move-constructible.

Trackers &operator=(Trackers&&) = default

Trackers is move-assignable.