KiCad PCB EDA Suite
Loading...
Searching...
No Matches
UTIL::LINK Class Reference

Simple RAII-handle to a subscription. More...

#include <observable.h>

Public Member Functions

 LINK ()
 
 LINK (std::shared_ptr< DETAIL::OBSERVABLE_BASE::IMPL > token, void *observer)
 
 LINK (LINK &&other)
 
 LINK (const LINK &)=delete
 
void operator= (const LINK &)=delete
 
LINKoperator= (LINK &&other)
 
void reset ()
 
 operator bool () const
 
 ~LINK ()
 

Private Attributes

std::shared_ptr< DETAIL::OBSERVABLE_BASE::IMPLtoken_
 
void * observer_
 

Detailed Description

Simple RAII-handle to a subscription.

Definition at line 102 of file observable.h.

Constructor & Destructor Documentation

◆ LINK() [1/4]

UTIL::LINK::LINK ( )

Definition at line 120 of file observable.cpp.

◆ LINK() [2/4]

UTIL::LINK::LINK ( std::shared_ptr< DETAIL::OBSERVABLE_BASE::IMPL token,
void *  observer 
)

Definition at line 126 of file observable.cpp.

◆ LINK() [3/4]

UTIL::LINK::LINK ( LINK &&  other)

Definition at line 132 of file observable.cpp.

◆ LINK() [4/4]

UTIL::LINK::LINK ( const LINK )
delete

◆ ~LINK()

UTIL::LINK::~LINK ( )

Definition at line 154 of file observable.cpp.

References reset().

Member Function Documentation

◆ operator bool()

UTIL::LINK::operator bool ( ) const
explicit

Definition at line 148 of file observable.cpp.

◆ operator=() [1/2]

void UTIL::LINK::operator= ( const LINK )
delete

◆ operator=() [2/2]

LINK & UTIL::LINK::operator= ( LINK &&  other)

Definition at line 139 of file observable.cpp.

References observer_, and token_.

◆ reset()

void UTIL::LINK::reset ( )

Definition at line 160 of file observable.cpp.

References observer_, and token_.

Referenced by ~LINK().

Member Data Documentation

◆ observer_

void* UTIL::LINK::observer_
private

Definition at line 121 of file observable.h.

Referenced by operator=(), and reset().

◆ token_

std::shared_ptr<DETAIL::OBSERVABLE_BASE::IMPL> UTIL::LINK::token_
private

Definition at line 120 of file observable.h.

Referenced by operator=(), and reset().


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