LeviLamina
Loading...
Searching...
No Matches
Bedrock::PubSub::FIFODeferredSubscriptionHub Class Reference
Inheritance diagram for Bedrock::PubSub::FIFODeferredSubscriptionHub:

Public Types

using QueueType
enum class  HubType : int { Priority = 0 , Fifo = 1 , RecursiveFIFO = 2 }
using FunctionType = ::brstd::move_only_function<void()>

Public Member Functions

virtual void flushPendingEvents ()
virtual::Bedrock::PubSub::DeferredSubscriptionHub::HubType getHubType () const
virtual bool _runOneEvent ()
virtual void _enqueue (::brstd::move_only_function< void()>, ::Bedrock::PubSub::ConnectPosition, ::std::optional< int >)
virtual uint64 runDeferredEvents (uint64 maxToRun)
virtual uint64 runDeferredEventsForDuration (::std::chrono::milliseconds msec)
virtual void clear ()
virtual uint64 erase (::Bedrock::PubSub::RawSubscription &subscription)
virtual uint64 size () const
virtual bool empty () const
virtual void _join (::Bedrock::PubSub::DeferredSubscription &&subscription)
MCAPI void $dtor ()
MCAPI uint64 $runDeferredEvents (uint64 maxToRun)
MCAPI uint64 $runDeferredEventsForDuration (::std::chrono::milliseconds msec)
MCAPI void $clear ()
MCAPI uint64 $erase (::Bedrock::PubSub::RawSubscription &subscription)
MCAPI uint64 $size () const
MCFOLD bool $empty () const
MCAPI void $_join (::Bedrock::PubSub::DeferredSubscription &&subscription)

Static Public Member Functions

static MCAPI void ** $vftable ()
static MCAPI ::std::unique_ptr<::Bedrock::PubSub::DeferredSubscriptionHub > makePriorityHub ()

Public Attributes

::ll::TypedStorage< 8, 560, ::Bedrock::MPSCQueue< ::brstd::move_only_function< void()>, 64, ::std::allocator<::brstd::move_only_function< void()> >, 0 > > mQueue
::ll::TypedStorage< 8, 24, ::std::vector<::Bedrock::PubSub::DeferredSubscription > > mSubscriptions

Member Typedef Documentation

◆ QueueType

using Bedrock::PubSub::FIFODeferredSubscriptionHub::QueueType
Initial value:
::Bedrock::
MPSCQueue<::brstd::move_only_function<void()>, 64, ::std::allocator<::brstd::move_only_function<void()>>, 0>
Definition move_only_function.h:9

Member Function Documentation

◆ flushPendingEvents()

virtual void Bedrock::PubSub::FIFODeferredSubscriptionHub::flushPendingEvents ( )
virtual

◆ getHubType()

virtual::Bedrock::PubSub::DeferredSubscriptionHub::HubType Bedrock::PubSub::FIFODeferredSubscriptionHub::getHubType ( ) const
virtual

◆ _runOneEvent()

virtual bool Bedrock::PubSub::FIFODeferredSubscriptionHub::_runOneEvent ( )
virtual

◆ _enqueue()

virtual void Bedrock::PubSub::FIFODeferredSubscriptionHub::_enqueue ( ::brstd::move_only_function< void()> ,
::Bedrock::PubSub::ConnectPosition ,
::std::optional< int >  )
virtual

◆ runDeferredEvents()

virtual uint64 Bedrock::PubSub::DeferredSubscriptionHubBase::runDeferredEvents ( uint64 maxToRun)
virtualinherited

◆ runDeferredEventsForDuration()

virtual uint64 Bedrock::PubSub::DeferredSubscriptionHubBase::runDeferredEventsForDuration ( ::std::chrono::milliseconds msec)
virtualinherited

◆ clear()

virtual void Bedrock::PubSub::DeferredSubscriptionHubBase::clear ( )
virtualinherited

◆ erase()

virtual uint64 Bedrock::PubSub::DeferredSubscriptionHubBase::erase ( ::Bedrock::PubSub::RawSubscription & subscription)
virtualinherited

◆ size()

virtual uint64 Bedrock::PubSub::DeferredSubscriptionHubBase::size ( ) const
virtualinherited

◆ empty()

virtual bool Bedrock::PubSub::DeferredSubscriptionHubBase::empty ( ) const
virtualinherited

◆ _join()

virtual void Bedrock::PubSub::DeferredSubscriptionHubBase::_join ( ::Bedrock::PubSub::DeferredSubscription && subscription)
virtualinherited

◆ $vftable()

MCAPI void ** Bedrock::PubSub::DeferredSubscriptionHubBase::$vftable ( )
staticinherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following file: