#include <secondaryCommands.h>
Public Types | |
using | callback_type = std::function< void(MultiGPUCommand, carla::Buffer)> |
Public Member Functions | |
void | process_command (Buffer buffer) |
void | set_callback (callback_type callback) |
void | set_secondary (std::shared_ptr< Secondary > secondary) |
Private Attributes | |
callback_type | _callback |
std::shared_ptr< Secondary > | _secondary |
Definition at line 19 of file secondaryCommands.h.
using carla::multigpu::SecondaryCommands::callback_type = std::function<void(MultiGPUCommand, carla::Buffer)> |
Definition at line 22 of file secondaryCommands.h.
void carla::multigpu::SecondaryCommands::process_command | ( | Buffer | buffer | ) |
Definition at line 22 of file secondaryCommands.cpp.
References _callback, carla::Buffer::data(), carla::multigpu::CommandHeader::id, and carla::multigpu::CommandHeader::size.
void carla::multigpu::SecondaryCommands::set_callback | ( | callback_type | callback | ) |
Definition at line 18 of file secondaryCommands.cpp.
References _callback.
Referenced by carla::multigpu::Secondary::Secondary().
void carla::multigpu::SecondaryCommands::set_secondary | ( | std::shared_ptr< Secondary > | secondary | ) |
Definition at line 14 of file secondaryCommands.cpp.
References _secondary.
Referenced by carla::multigpu::Secondary::Connect().
|
private |
Definition at line 30 of file secondaryCommands.h.
Referenced by process_command(), and set_callback().
|
private |
Definition at line 29 of file secondaryCommands.h.
Referenced by set_secondary().