Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QtMultimediaPrivate::CaptureSlotRegistry< Producer, Slot, Capacity > Class Template Reference

#include <qcaptureslotregistry_p.h>

Inheritance diagram for QtMultimediaPrivate::CaptureSlotRegistry< Producer, Slot, Capacity >:
Collaboration diagram for QtMultimediaPrivate::CaptureSlotRegistry< Producer, Slot, Capacity >:

Classes

class  Lease

Public Types

using SlotType = Slot

Public Member Functions

 CaptureSlotRegistry (std::size_t slotCount, std::size_t minFreeSlots)
std::optional< Lease > tryReserveSlot (Slot &slot)
std::optional< Lease > tryReserveSlot (Slot &&slot)
std::size_t outstandingSlotCount () const
void stop ()

Protected Member Functions

 ~CaptureSlotRegistry ()=default

Friends

class Lease

Detailed Description

template<typename Producer, typename Slot, size_t Capacity = 32>
class QtMultimediaPrivate::CaptureSlotRegistry< Producer, Slot, Capacity >

Definition at line 61 of file qcaptureslotregistry_p.h.

Member Typedef Documentation

◆ SlotType

template<typename Producer, typename Slot, size_t Capacity = 32>
using QtMultimediaPrivate::CaptureSlotRegistry< Producer, Slot, Capacity >::SlotType = Slot

Definition at line 64 of file qcaptureslotregistry_p.h.

Constructor & Destructor Documentation

◆ CaptureSlotRegistry()

template<typename Producer, typename Slot, size_t Capacity = 32>
QtMultimediaPrivate::CaptureSlotRegistry< Producer, Slot, Capacity >::CaptureSlotRegistry ( std::size_t slotCount,
std::size_t minFreeSlots )
inline

Definition at line 66 of file qcaptureslotregistry_p.h.

◆ ~CaptureSlotRegistry()

template<typename Producer, typename Slot, size_t Capacity = 32>
QtMultimediaPrivate::CaptureSlotRegistry< Producer, Slot, Capacity >::~CaptureSlotRegistry ( )
protecteddefault

Member Function Documentation

◆ outstandingSlotCount()

template<typename Producer, typename Slot, size_t Capacity = 32>
std::size_t QtMultimediaPrivate::CaptureSlotRegistry< Producer, Slot, Capacity >::outstandingSlotCount ( ) const
inline

Definition at line 141 of file qcaptureslotregistry_p.h.

◆ stop()

template<typename Producer, typename Slot, size_t Capacity = 32>
void QtMultimediaPrivate::CaptureSlotRegistry< Producer, Slot, Capacity >::stop ( )
inline

Definition at line 149 of file qcaptureslotregistry_p.h.

◆ tryReserveSlot() [1/2]

template<typename Producer, typename Slot, size_t Capacity = 32>
std::optional< Lease > QtMultimediaPrivate::CaptureSlotRegistry< Producer, Slot, Capacity >::tryReserveSlot ( Slot && slot)
inline

Definition at line 139 of file qcaptureslotregistry_p.h.

◆ tryReserveSlot() [2/2]

template<typename Producer, typename Slot, size_t Capacity = 32>
std::optional< Lease > QtMultimediaPrivate::CaptureSlotRegistry< Producer, Slot, Capacity >::tryReserveSlot ( Slot & slot)
inline

Definition at line 119 of file qcaptureslotregistry_p.h.

◆ Lease

template<typename Producer, typename Slot, size_t Capacity = 32>
friend class Lease
friend

Definition at line 164 of file qcaptureslotregistry_p.h.


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