CARLA
 
载入中...
搜索中...
未找到
Public 类型 | 静态 Public 成员函数 | Private 类型 | 静态 Private 成员函数 | 所有成员列表
carla::sensor::CompositeSerializer< Items > 模板类 参考

Compile-time map for mapping sensor objects to serializers. 更多...

#include <CompositeSerializer.h>

+ 类 carla::sensor::CompositeSerializer< Items > 继承关系图:
+ carla::sensor::CompositeSerializer< Items > 的协作图:

Public 类型

using interpreted_type = SharedPtr<SensorData>
 
- Public 类型 继承自 carla::sensor::CompileTimeTypeMap< Items... >
using get
 
using get_by_index
 

静态 Public 成员函数

static interpreted_type Deserialize (Buffer &&data)
 Deserializes a Buffer by calling the "Deserialize" function of the serializer that generated the Buffer.
 
template<typename Sensor , typename... Args>
static Buffer Serialize (Sensor &sensor, Args &&... args)
 Serialize the arguments provided into a Buffer by calling to the serializer registered for the given Sensor type.
 
- 静态 Public 成员函数 继承自 carla::sensor::CompileTimeTypeMap< Items... >
static constexpr size_t size ()
 

Private 类型

using Super = CompileTimeTypeMap<Items...>
 

静态 Private 成员函数

template<typename Data >
static interpreted_type Deserialize (size_t index, Data &&data)
 
template<size_t Index, typename Data >
static interpreted_type Deserialize_impl (Data &&data)
 
template<typename Data , size_t... Is>
static interpreted_type Deserialize_impl (size_t i, Data &&data, std::index_sequence< Is... >)
 

详细描述

template<typename... Items>
class carla::sensor::CompositeSerializer< Items >

Compile-time map for mapping sensor objects to serializers.

The appropriate serializer is called for each sensor to serialize and deserialize its data.

Do not use directly, use the SensorRegistry instantiation.

在文件 CompositeSerializer.h29 行定义.

成员类型定义说明

◆ interpreted_type

template<typename... Items>
using carla::sensor::CompositeSerializer< Items >::interpreted_type = SharedPtr<SensorData>

在文件 CompositeSerializer.h34 行定义.

◆ Super

template<typename... Items>
using carla::sensor::CompositeSerializer< Items >::Super = CompileTimeTypeMap<Items...>
private

在文件 CompositeSerializer.h30 行定义.

成员函数说明

◆ Deserialize() [1/2]

template<typename... Items>
CompositeSerializer< Items... >::interpreted_type carla::sensor::CompositeSerializer< Items >::Deserialize ( Buffer && data)
inlinestatic

Deserializes a Buffer by calling the "Deserialize" function of the serializer that generated the Buffer.

在文件 CompositeSerializer.h88 行定义.

引用了 carla::sensor::RawData::GetSensorTypeId().

被这些函数引用 carla::sensor::Deserializer::Deserialize().

+ 函数调用图:
+ 这是这个函数的调用关系图:

◆ Deserialize() [2/2]

template<typename... Items>
template<typename Data >
static interpreted_type carla::sensor::CompositeSerializer< Items >::Deserialize ( size_t index,
Data && data )
inlinestaticprivate

在文件 CompositeSerializer.h66 行定义.

引用了 carla::sensor::CompositeSerializer< Items >::Deserialize_impl() , 以及 carla::sensor::CompileTimeTypeMap< Items... >::size().

+ 函数调用图:

◆ Deserialize_impl() [1/2]

template<typename... Items>
template<size_t Index, typename Data >
static interpreted_type carla::sensor::CompositeSerializer< Items >::Deserialize_impl ( Data && data)
inlinestaticprivate

在文件 CompositeSerializer.h48 行定义.

被这些函数引用 carla::sensor::CompositeSerializer< Items >::Deserialize().

+ 这是这个函数的调用关系图:

◆ Deserialize_impl() [2/2]

template<typename... Items>
template<typename Data , size_t... Is>
static interpreted_type carla::sensor::CompositeSerializer< Items >::Deserialize_impl ( size_t i,
Data && data,
std::index_sequence< Is... >  )
inlinestaticprivate

在文件 CompositeSerializer.h54 行定义.

◆ Serialize()

template<typename... Items>
template<typename Sensor , typename... Args>
Buffer carla::sensor::CompositeSerializer< Items >::Serialize ( Sensor & sensor,
Args &&... args )
inlinestatic

Serialize the arguments provided into a Buffer by calling to the serializer registered for the given Sensor type.

在文件 CompositeSerializer.h80 行定义.

被这些函数引用 ADVSCamera::PostPhysTick(), FPixelReader::SendPixelsInRenderThread() , 以及 FAsyncDataStreamTmpl< T >::SerializeAndSend().

+ 这是这个函数的调用关系图:

该类的文档由以下文件生成: