CARLA
Public Types | Public Member Functions | Private Attributes | List of all members
carla::multigpu::SecondaryCommands Class Reference

#include <secondaryCommands.h>

+ Collaboration diagram for carla::multigpu::SecondaryCommands:

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

Definition at line 22 of file secondaryCommands.h.

Member Function Documentation

◆ process_command()

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.

+ Here is the call graph for this function:

◆ set_callback()

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().

+ Here is the caller graph for this function:

◆ set_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().

+ Here is the caller graph for this function:

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: