CARLA
Loading...
Searching...
No Matches
carla::multigpu::SecondaryCommands Class Reference

#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

Detailed Description

Definition at line 19 of file secondaryCommands.h.

Member Typedef Documentation

◆ callback_type

Member Function Documentation

◆ process_command()

void carla::multigpu::SecondaryCommands::process_command ( Buffer buffer)

◆ set_callback()

void carla::multigpu::SecondaryCommands::set_callback ( callback_type callback)

◆ set_secondary()

void carla::multigpu::SecondaryCommands::set_secondary ( std::shared_ptr< Secondary > secondary)

Definition at line 15 of file secondaryCommands.cpp.

References _secondary.

Referenced by carla::multigpu::Secondary::Connect().

Member Data Documentation

◆ _callback

callback_type carla::multigpu::SecondaryCommands::_callback
private

Definition at line 30 of file secondaryCommands.h.

Referenced by process_command(), and set_callback().

◆ _secondary

std::shared_ptr<Secondary> carla::multigpu::SecondaryCommands::_secondary
private

Definition at line 29 of file secondaryCommands.h.

Referenced by set_secondary().


The documentation for this class was generated from the following files: