Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
Observer::detail::RecordBase Struct Reference

doubly-linked list cell using shared and weak pointers More...

#include <Observer.h>

Inheritance diagram for Observer::detail::RecordBase:
[legend]
Collaboration diagram for Observer::detail::RecordBase:
[legend]

Public Member Functions

void Unlink () noexcept
 

Public Attributes

std::weak_ptr< RecordLinkprev
 

Detailed Description

doubly-linked list cell using shared and weak pointers

Definition at line 49 of file Observer.h.

Member Function Documentation

◆ Unlink()

void Observer::detail::RecordBase::Unlink ( )
noexcept

Definition at line 17 of file Observer.cpp.

18{
19 auto pPrev = prev.lock();
20 assert(pPrev); // See RecordList constructor and PushFront
21 // Do not move from next, see Visit
22 if (auto &pNext = (pPrev->next = next))
23 pNext->prev = move(prev);
24}
std::weak_ptr< RecordLink > prev
Definition: Observer.h:50

References Observer::detail::RecordLink::next, and prev.

Member Data Documentation

◆ prev

std::weak_ptr<RecordLink> Observer::detail::RecordBase::prev

Definition at line 50 of file Observer.h.

Referenced by Unlink().


The documentation for this struct was generated from the following files: