Keeps a list of actor descriptions to avoid requesting each time the descriptions to the server. 更多...
#include <CachedActorList.h>
Public 成员函数 | |
void | Clear () |
boost::optional< rpc::Actor > | GetActorById (ActorId id) const |
Retrieve the actor matching id, or empty optional if actor is not cached. | |
template<typename RangeT > | |
std::vector< rpc::Actor > | GetActorsById (const RangeT &range) const |
Retrieve the actors matching the ids in range. | |
template<typename RangeT > | |
std::vector< ActorId > | GetMissingIds (const RangeT &range) const |
Return the actor ids present in range that haven't been added to this list. | |
void | Insert (rpc::Actor actor) |
Inserts an actor into the list. | |
template<typename RangeT > | |
void | InsertRange (RangeT range) |
Inserts a range containing actors. | |
Private 属性 | |
std::unordered_map< ActorId, rpc::Actor > | _actors |
std::mutex | _mutex |
额外继承的成员函数 | |
Private 成员函数 继承自 carla::MovableNonCopyable | |
MovableNonCopyable ()=default | |
MovableNonCopyable (const MovableNonCopyable &)=delete | |
MovableNonCopyable (MovableNonCopyable &&)=default | |
MovableNonCopyable & | operator= (const MovableNonCopyable &)=delete |
MovableNonCopyable & | operator= (MovableNonCopyable &&)=default |
Keeps a list of actor descriptions to avoid requesting each time the descriptions to the server.
在文件 CachedActorList.h 第 30 行定义.
|
inline |
在文件 CachedActorList.h 第 119 行定义.
被这些函数引用 carla::client::detail::Episode::OnEpisodeStarted().
|
inline |
Retrieve the actor matching id, or empty optional if actor is not cached.
在文件 CachedActorList.h 第 96 行定义.
被这些函数引用 carla::client::detail::Episode::GetActorById().
|
inline |
Retrieve the actors matching the ids in range.
在文件 CachedActorList.h 第 106 行定义.
被这些函数引用 carla::client::detail::GetActorsById_Impl().
|
inline |
Return the actor ids present in range that haven't been added to this list.
在文件 CachedActorList.h 第 86 行定义.
被这些函数引用 carla::client::detail::GetActorsById_Impl().
|
inline |
Inserts an actor into the list.
在文件 CachedActorList.h 第 66 行定义.
引用了 _actors, _mutex , 以及 carla::rpc::Actor::id.
被这些函数引用 carla::client::detail::Episode::GetActorById() , 以及 carla::client::detail::Episode::RegisterActor().
|
inline |
Inserts a range containing actors.
在文件 CachedActorList.h 第 73 行定义.
被这些函数引用 carla::client::detail::GetActorsById_Impl().
|
private |
在文件 CachedActorList.h 第 59 行定义.
被这些函数引用 Clear(), GetActorById(), GetActorsById(), GetMissingIds(), Insert() , 以及 InsertRange().
|
mutableprivate |
在文件 CachedActorList.h 第 57 行定义.
被这些函数引用 Clear(), GetActorById(), GetActorsById(), GetMissingIds(), Insert() , 以及 InsertRange().