TMediaPinList¶
primo::avblocks::modern::TMediaPinList
-
class TMediaPinList¶
Non-owning view of a
MediaPinList.Returned by
TMediaSocketT::pins().Public Functions
-
inline explicit TMediaPinList(primo::avblocks::MediaPinList *list)¶
Wraps a non-owned
MediaPinListpointer.
-
inline int32_t count() const¶
Returns the number of pins in the collection.
-
inline TMediaPin at(int32_t index) const¶
Returns the pin at
index, wrapping the existing (non-owned) pointer.
-
inline ItemRef operator[](int32_t index) &¶
Non-const lvalue subscript — returns a proxy supporting read and
setAtwrite.
-
inline bool setAt(int32_t index, TMediaPin &&pin)¶
Replaces the pin at
indexwithpin. Returnstrueon success.
-
inline bool insert(int32_t index, TMediaPin &&pin)¶
Inserts
pinbeforeindex, shifting later items. Returnstrueon success.
-
inline bool immutable() const¶
Returns
truewhen the list (and its parentMediaSocket) is immutable.
-
inline bool remove(int32_t index)¶
Removes the pin at
index. Returnstrueon success.
-
inline bool clear()¶
Removes all pins from the list. Returns
trueon success.
-
struct ItemRef¶
Proxy returned by the non-const lvalue
operator[](int32_t).Supports both read (implicit conversion to
TMediaPin) and write (operator=callssetAton the parent list).Public Functions
Public Members
-
TMediaPinList &list_¶
The list this proxy refers to.
-
int32_t index_¶
Index of the item the proxy refers to.
-
TMediaPinList &list_¶
-
inline explicit TMediaPinList(primo::avblocks::MediaPinList *list)¶