KiCad PCB EDA Suite
Loading...
Searching...
No Matches
UTIL::DETAIL::OBSERVABLE_BASE Struct Reference

#include <observable.h>

Inheritance diagram for UTIL::DETAIL::OBSERVABLE_BASE:
UTIL::OBSERVABLE< GAL_DISPLAY_OPTIONS_OBSERVER > UTIL::OBSERVABLE< ObserverInterface > KIGFX::GAL_DISPLAY_OPTIONS GAL_DISPLAY_OPTIONS_IMPL

Classes

struct  IMPL
 

Public Member Functions

 OBSERVABLE_BASE ()
 
 OBSERVABLE_BASE (OBSERVABLE_BASE &other)
 
 ~OBSERVABLE_BASE ()
 
size_t size () const
 

Protected Member Functions

void on_observers_empty ()
 
void enter_iteration ()
 
void leave_iteration ()
 
void add_observer (void *observer)
 
void remove_observer (void *observer)
 

Protected Attributes

std::shared_ptr< IMPLimpl_
 

Private Member Functions

void allocate_impl ()
 
void allocate_shared_impl ()
 
void deallocate_impl ()
 
std::shared_ptr< IMPLget_shared_impl ()
 

Friends

class UTIL::LINK
 

Detailed Description

Definition at line 43 of file observable.h.

Constructor & Destructor Documentation

◆ OBSERVABLE_BASE() [1/2]

UTIL::DETAIL::OBSERVABLE_BASE::OBSERVABLE_BASE ( )

Definition at line 172 of file observable.cpp.

◆ OBSERVABLE_BASE() [2/2]

UTIL::DETAIL::OBSERVABLE_BASE::OBSERVABLE_BASE ( OBSERVABLE_BASE other)

Definition at line 177 of file observable.cpp.

◆ ~OBSERVABLE_BASE()

UTIL::DETAIL::OBSERVABLE_BASE::~OBSERVABLE_BASE ( )

Definition at line 183 of file observable.cpp.

Member Function Documentation

◆ add_observer()

void UTIL::DETAIL::OBSERVABLE_BASE::add_observer ( void *  observer)
protected

Definition at line 216 of file observable.cpp.

References allocate_impl(), and impl_.

◆ allocate_impl()

void UTIL::DETAIL::OBSERVABLE_BASE::allocate_impl ( )
private

Definition at line 188 of file observable.cpp.

References impl_.

Referenced by add_observer().

◆ allocate_shared_impl()

void UTIL::DETAIL::OBSERVABLE_BASE::allocate_shared_impl ( )
private

Definition at line 195 of file observable.cpp.

References impl_.

Referenced by get_shared_impl().

◆ deallocate_impl()

void UTIL::DETAIL::OBSERVABLE_BASE::deallocate_impl ( )
private

Definition at line 204 of file observable.cpp.

References impl_.

Referenced by on_observers_empty().

◆ enter_iteration()

void UTIL::DETAIL::OBSERVABLE_BASE::enter_iteration ( )
protected

◆ get_shared_impl()

std::shared_ptr< OBSERVABLE_BASE::IMPL > UTIL::DETAIL::OBSERVABLE_BASE::get_shared_impl ( )
private

Definition at line 209 of file observable.cpp.

References allocate_shared_impl(), and impl_.

◆ leave_iteration()

void UTIL::DETAIL::OBSERVABLE_BASE::leave_iteration ( )
protected

◆ on_observers_empty()

void UTIL::DETAIL::OBSERVABLE_BASE::on_observers_empty ( )
protected

Definition at line 258 of file observable.cpp.

References deallocate_impl().

◆ remove_observer()

void UTIL::DETAIL::OBSERVABLE_BASE::remove_observer ( void *  observer)
protected

Definition at line 223 of file observable.cpp.

References impl_.

◆ size()

size_t UTIL::DETAIL::OBSERVABLE_BASE::size ( ) const

Definition at line 249 of file observable.cpp.

References impl_.

Friends And Related Function Documentation

◆ UTIL::LINK

friend class UTIL::LINK
friend

Definition at line 54 of file observable.h.

Referenced by UTIL::OBSERVABLE< ObserverInterface >::Subscribe().

Member Data Documentation

◆ impl_


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