保留参与者描述列表,以避免每次都向服务器请求描述。 更多...
#include <CachedActorList.h>
Public 成员函数 | |
void | Clear () |
boost::optional< rpc::Actor > | GetActorById (ActorId id) const |
检索与 id 匹配的参与者,如果参与者未被缓存,则为空(可选)。 | |
template<typename RangeT > | |
std::vector< rpc::Actor > | GetActorsById (const RangeT &range) const |
检索与 范围内的 ID 匹配的参与者。 | |
template<typename RangeT > | |
std::vector< ActorId > | GetMissingIds (const RangeT &range) const |
返回 范围内尚未添加到此列表的参与者 ID。 | |
void | Insert (rpc::Actor actor) |
将参与者插入到列表中。 | |
template<typename RangeT > | |
void | InsertRange (RangeT range) |
插入包含参与者的 范围。 | |
Private 属性 | |
std::unordered_map< ActorId, rpc::Actor > | _actors |
std::mutex | _mutex |
额外继承的成员函数 | |
![]() | |
MovableNonCopyable ()=default | |
MovableNonCopyable (const MovableNonCopyable &)=delete | |
MovableNonCopyable (MovableNonCopyable &&)=default | |
MovableNonCopyable & | operator= (const MovableNonCopyable &)=delete |
MovableNonCopyable & | operator= (MovableNonCopyable &&)=default |
保留参与者描述列表,以避免每次都向服务器请求描述。
在文件 CachedActorList.h 第 29 行定义.
|
inline |
在文件 CachedActorList.h 第 116 行定义.
被这些函数引用 carla::client::detail::Episode::OnEpisodeStarted().
|
inline |
|
inline |
检索与 范围内的 ID 匹配的参与者。
在文件 CachedActorList.h 第 103 行定义.
被这些函数引用 carla::client::detail::GetActorsById_Impl().
|
inline |
返回 范围内尚未添加到此列表的参与者 ID。
在文件 CachedActorList.h 第 83 行定义.
被这些函数引用 carla::client::detail::GetActorsById_Impl().
|
inline |
将参与者插入到列表中。
在文件 CachedActorList.h 第 63 行定义.
引用了 _actors, _mutex , 以及 carla::rpc::Actor::id.
被这些函数引用 carla::client::detail::Episode::RegisterParticipant().
|
inline |
插入包含参与者的 范围。
在文件 CachedActorList.h 第 70 行定义.
被这些函数引用 carla::client::detail::GetActorsById_Impl().
|
private |
在文件 CachedActorList.h 第 56 行定义.
被这些函数引用 Clear(), GetActorById(), GetActorsById(), GetMissingIds(), Insert() , 以及 InsertRange().
|
mutableprivate |
在文件 CachedActorList.h 第 54 行定义.
被这些函数引用 Clear(), GetActorById(), GetActorsById(), GetMissingIds(), Insert() , 以及 InsertRange().