35 for (
const auto &item : this->items) {
36 if (item.entity == entity && item.message_type == message_type)
50 if (this->
contains(entity, message_type))
53 this->items.push_back({entity, message_type, estimated_size, aux_data_index});
58 this->items.push_back({});
59 std::move_backward(this->items.begin(), this->items.end() - 1, this->items.end());
60 this->items.front() = {entity, message_type, estimated_size,
AUX_DATA_UNUSED};
82 std::vector<BatchItem>().swap(
items);
static constexpr uint16_t MESSAGE_TYPE
struct @66::@67 __attribute__
Wake the main loop task from an ISR. ISR-safe.
void remove_front(size_t count) __attribute__((noinline))
static constexpr uint8_t AUX_DATA_UNUSED
uint32_t batch_start_time
std::vector< BatchItem > items
void add_item_front(EntityBase *entity, uint16_t message_type, uint8_t estimated_size)
const BatchItem & operator[](size_t index) const
void add_item(EntityBase *entity, uint16_t message_type, uint8_t estimated_size, uint8_t aux_data_index=AUX_DATA_UNUSED)
bool contains(EntityBase *entity, uint16_t message_type) const