20 using Shared = std::shared_ptr<Simulator>;
22 using Weak = std::weak_ptr<Simulator>;
27 template <
typename Po
interT>
57 void Clear() noexcept;
A very simple atomic shared ptr with release-acquire memory order.
Provides access to the Simulator during a given episode.
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
Same as TryLock but never return nullptr.
EpisodeProxyImpl()=default
EpisodeProxyImpl< EpisodeProxyPointerType::Weak > WeakEpisodeProxy
This file contains definitions of common data structures used in traffic manager.
std::shared_ptr< Simulator > Shared
std::weak_ptr< Simulator > Weak