popLE overloads
Synopses
Declared in <bdlcc_timequeue.h>
Remove from this queue all the items that have a time value less than or equal to the specified time, and optionally append into the optionally specified buffer a list of the removed items, ordered by their corresponding time values (top item first). Optionally load into the optionally specified newLength the number of items remaining in this queue, and into the optionally specified newMinTime the lowest remaining time value in this queue. Note that newMinTime is only loaded if there are items remaining in the time queue; therefore, newLength should be specified and examined to determine whether items remain, and newMinTime used only when newLength > 0. Also note that if DATA follows the bdema allocator model, the allocator of the buffer vector is used to supply memory for the items appended to the buffer.
void
popLE(bsls::TimeInterval const& time);
Remove from this queue up to the specified maxTimers number of items that have a time value less than or equal to the specified time, and optionally append into the optionally specified buffer a list of the removed items, ordered by their corresponding time values (top item first). Optionally load into the optionally specified newLength the number of items remaining in this queue, and into the optionally specified newMinTime the lowest remaining time value in this queue. The behavior is undefined unless maxTimers >= 0. Note that newMinTime is only loaded if there are items remaining in the time queue; therefore, newLength should be specified and examined to determine whether items remain, and newMinTime used only when newLength > 0. Also note that if DATA follows the bdema allocator model, the allocator of the buffer vector is used to supply memory. Note finally that all the items appended into buffer have a time value less than or equal to the elements remaining in this queue.
void
popLE(
bsls::TimeInterval const& time,
int maxTimers);
Same as the preceding overload, appending removed items to the specified buffer.
void
popLE(
bsls::TimeInterval const& time,
bsl::vector<TimeQueueItem<function<void()>>>* buffer,
int* newLength = 0,
bsls::TimeInterval* newMinTime = 0);
Same as the preceding overload, appending removed items to the specified buffer.
void
popLE(
bsls::TimeInterval const& time,
std::pmr::vector<TimeQueueItem<function<void()>>>* buffer,
int* newLength = 0,
bsls::TimeInterval* newMinTime = 0);
Same as the preceding overload, appending removed items to the specified buffer.
void
popLE(
bsls::TimeInterval const& time,
std::vector<TimeQueueItem<function<void()>>>* buffer,
int* newLength = 0,
bsls::TimeInterval* newMinTime = 0);
Same as the preceding overload, appending removed items to the specified buffer.
void
popLE(
bsls::TimeInterval const& time,
int maxTimers,
bsl::vector<TimeQueueItem<function<void()>>>* buffer,
int* newLength = 0,
bsls::TimeInterval* newMinTime = 0);
Same as the preceding overload, appending removed items to the specified buffer.
void
popLE(
bsls::TimeInterval const& time,
int maxTimers,
std::pmr::vector<TimeQueueItem<function<void()>>>* buffer,
int* newLength = 0,
bsls::TimeInterval* newMinTime = 0);
Same as the preceding overload, appending removed items to the specified buffer.
void
popLE(
bsls::TimeInterval const& time,
int maxTimers,
std::vector<TimeQueueItem<function<void()>>>* buffer,
int* newLength = 0,
bsls::TimeInterval* newMinTime = 0);
Created with MrDocs