22 using Shared = std::shared_ptr<Simulator>;
24 using Weak = std::weak_ptr<Simulator>;
29 template <
typename Po
interT>
65 void Clear() noexcept;
在给定情节期间提供对模拟器的访问。 情节结束后,对模拟器的任何访问都会引发 std::runtime_error。
friend class EpisodeProxyImpl
auto GetId() const noexcept
EpisodeProxyPointerType::Shared SharedPtrType
SharedPtrType TryLock() const noexcept
bool IsValid() const noexcept
EpisodeProxyImpl(EpisodeProxyImpl< T > other)
SharedPtrType Lock() const
与 TryLock 相同,但永远不会返回 nullptr。
EpisodeProxyImpl()=default
EpisodeProxyImpl< EpisodeProxyPointerType::Weak > WeakEpisodeProxy
std::shared_ptr< Simulator > Shared
std::weak_ptr< Simulator > Weak