/* * CanTxQueue::Entry */ void CanTxQueue::Entry::destroy(Entry*& obj, IPoolAllocator& allocator) { if (obj != NULL) { obj->~Entry(); allocator.deallocate(obj); obj = NULL; } }
static void destroy(Chunk*& obj, IPoolAllocator& allocator) { if (obj != NULL) { obj->~Chunk(); allocator.deallocate(obj); obj = NULL; } }
void TransferBufferManagerEntry::Block::destroy(Block*& obj, IPoolAllocator& allocator) { if (obj != UAVCAN_NULLPTR) { obj->~Block(); allocator.deallocate(obj); obj = UAVCAN_NULLPTR; } }
static void destroy(KVGroup*& obj, IPoolAllocator& allocator) { if (obj != NULL) { obj->~KVGroup(); allocator.deallocate(obj); obj = NULL; } }
void DynamicTransferBufferManagerEntry::destroy(DynamicTransferBufferManagerEntry*& obj, IPoolAllocator& allocator) { if (obj != NULL) { obj->~DynamicTransferBufferManagerEntry(); allocator.deallocate(obj); obj = NULL; } }