CARLA
 
载入中...
搜索中...
未找到
Public 类型 | Public 成员函数 | Private 类型 | Private 成员函数 | Private 属性 | 所有成员列表
carla::client::BlueprintLibrary类 参考

#include <BlueprintLibrary.h>

+ 类 carla::client::BlueprintLibrary 继承关系图:
+ carla::client::BlueprintLibrary 的协作图:

Public 类型

using const_iterator = decltype(carla::iterator::make_map_values_const_iterator<map_type::const_iterator>(map_type::const_iterator{}))
 
using const_pointer = const value_type *
 
using const_reference = const value_type &
 
using key_type = map_type::key_type
 
using size_type = map_type::size_type
 
using value_type = map_type::mapped_type
 

Public 成员函数

const_reference at (const std::string &key) const
 
const_reference at (size_type pos) const
 
const_iterator begin () const
 
 BlueprintLibrary (BlueprintLibrary &&)=default
 
 BlueprintLibrary (const std::vector< rpc::ActorDefinition > &blueprints)
 
bool empty () const
 
const_iterator end () const
 
SharedPtr< BlueprintLibraryFilter (const std::string &wildcard_pattern) const
 Filters a list of ActorBlueprint with id or tags matching wildcard_pattern.
 
SharedPtr< BlueprintLibraryFilterByAttribute (const std::string &name, const std::string &value) const
 
const_pointer Find (const std::string &key) const
 
BlueprintLibraryoperator= (BlueprintLibrary &&)=default
 
const_reference operator[] (size_type pos) const
 
size_type size () const
 

Private 类型

using map_type = std::unordered_map<std::string, ActorBlueprint>
 

Private 成员函数

 BlueprintLibrary (map_type blueprints)
 
- Private 成员函数 继承自 carla::MovableNonCopyable
 MovableNonCopyable ()=default
 
 MovableNonCopyable (const MovableNonCopyable &)=delete
 
 MovableNonCopyable (MovableNonCopyable &&)=default
 
MovableNonCopyableoperator= (const MovableNonCopyable &)=delete
 
MovableNonCopyableoperator= (MovableNonCopyable &&)=default
 

Private 属性

map_type _blueprints
 

详细描述

待办事项
Works as a list but its actually a map. We should assess the use cases and reconsider this implementation.

在文件 BlueprintLibrary.h24 行定义.

成员类型定义说明

◆ const_iterator

using carla::client::BlueprintLibrary::const_iterator = decltype(carla::iterator::make_map_values_const_iterator<map_type::const_iterator>(map_type::const_iterator{}))

在文件 BlueprintLibrary.h34 行定义.

◆ const_pointer

在文件 BlueprintLibrary.h36 行定义.

◆ const_reference

在文件 BlueprintLibrary.h35 行定义.

◆ key_type

using carla::client::BlueprintLibrary::key_type = map_type::key_type

在文件 BlueprintLibrary.h31 行定义.

◆ map_type

using carla::client::BlueprintLibrary::map_type = std::unordered_map<std::string, ActorBlueprint>
private

在文件 BlueprintLibrary.h27 行定义.

◆ size_type

using carla::client::BlueprintLibrary::size_type = map_type::size_type

在文件 BlueprintLibrary.h33 行定义.

◆ value_type

using carla::client::BlueprintLibrary::value_type = map_type::mapped_type

在文件 BlueprintLibrary.h32 行定义.

构造及析构函数说明

◆ BlueprintLibrary() [1/3]

carla::client::BlueprintLibrary::BlueprintLibrary ( const std::vector< rpc::ActorDefinition > & blueprints)
explicit

在文件 BlueprintLibrary.cpp17 行定义.

引用了 _blueprints.

◆ BlueprintLibrary() [2/3]

carla::client::BlueprintLibrary::BlueprintLibrary ( BlueprintLibrary && )
default

◆ BlueprintLibrary() [3/3]

carla::client::BlueprintLibrary::BlueprintLibrary ( map_type blueprints)
inlineprivate

在文件 BlueprintLibrary.h81 行定义.

成员函数说明

◆ at() [1/2]

BlueprintLibrary::const_reference carla::client::BlueprintLibrary::at ( const std::string & key) const
异常
std::out_of_rangeif no such element exists.

在文件 BlueprintLibrary.cpp72 行定义.

引用了 carla::throw_exception().

+ 函数调用图:

◆ at() [2/2]

BlueprintLibrary::const_reference carla::client::BlueprintLibrary::at ( size_type pos) const
警告
Linear complexity.
异常
std::out_of_rangeif !(pos < size()).

在文件 BlueprintLibrary.cpp81 行定义.

引用了 carla::throw_exception().

+ 函数调用图:

◆ begin()

const_iterator carla::client::BlueprintLibrary::begin ( ) const
inline

在文件 BlueprintLibrary.h63 行定义.

引用了 _blueprints , 以及 carla::iterator::make_map_values_const_iterator().

+ 函数调用图:

◆ empty()

bool carla::client::BlueprintLibrary::empty ( ) const
inline

在文件 BlueprintLibrary.h71 行定义.

引用了 _blueprints.

◆ end()

const_iterator carla::client::BlueprintLibrary::end ( ) const
inline

在文件 BlueprintLibrary.h67 行定义.

引用了 _blueprints , 以及 carla::iterator::make_map_values_const_iterator().

被这些函数引用 Find().

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

◆ Filter()

SharedPtr< BlueprintLibrary > carla::client::BlueprintLibrary::Filter ( const std::string & wildcard_pattern) const

Filters a list of ActorBlueprint with id or tags matching wildcard_pattern.

在文件 BlueprintLibrary.cpp25 行定义.

◆ FilterByAttribute()

SharedPtr< BlueprintLibrary > carla::client::BlueprintLibrary::FilterByAttribute ( const std::string & name,
const std::string & value ) const

在文件 BlueprintLibrary.cpp36 行定义.

引用了 carla::client::ActorAttribute::GetRecommendedValues() , 以及 carla::client::ActorAttribute::GetValue().

+ 函数调用图:

◆ Find()

BlueprintLibrary::const_pointer carla::client::BlueprintLibrary::Find ( const std::string & key) const

在文件 BlueprintLibrary.cpp67 行定义.

引用了 end().

+ 函数调用图:

◆ operator=()

BlueprintLibrary & carla::client::BlueprintLibrary::operator= ( BlueprintLibrary && )
default

◆ operator[]()

const_reference carla::client::BlueprintLibrary::operator[] ( size_type pos) const
inline
警告
Linear complexity.

在文件 BlueprintLibrary.h54 行定义.

引用了 _blueprints.

◆ size()

size_type carla::client::BlueprintLibrary::size ( ) const
inline

在文件 BlueprintLibrary.h75 行定义.

引用了 _blueprints.

类成员变量说明

◆ _blueprints

map_type carla::client::BlueprintLibrary::_blueprints
private

在文件 BlueprintLibrary.h84 行定义.

被这些函数引用 begin(), BlueprintLibrary(), empty(), end(), operator[]() , 以及 size().


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