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

Public Member Functions

 IMPL (OBSERVABLE_BASE *owned_by=nullptr)
 
bool is_shared () const
 
void set_shared ()
 
 ~IMPL ()
 
void add_observer (void *observer)
 
void remove_observer (void *observer)
 
void collect ()
 
bool is_iterating () const
 
void enter_iteration ()
 
void leave_iteration ()
 

Public Attributes

std::vector< void * > observers_
 
unsigned int iteration_count_
 
OBSERVABLE_BASEowned_by_
 

Detailed Description

Definition at line 56 of file observable.h.

Constructor & Destructor Documentation

◆ IMPL()

UTIL::DETAIL::OBSERVABLE_BASE::IMPL::IMPL ( OBSERVABLE_BASE owned_by = nullptr)

Definition at line 45 of file observable.cpp.

◆ ~IMPL()

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

Definition at line 62 of file observable.cpp.

Member Function Documentation

◆ add_observer()

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

Definition at line 88 of file observable.cpp.

◆ collect()

void UTIL::DETAIL::OBSERVABLE_BASE::IMPL::collect ( )

Definition at line 112 of file observable.cpp.

◆ enter_iteration()

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

Definition at line 67 of file observable.cpp.

◆ is_iterating()

bool UTIL::DETAIL::OBSERVABLE_BASE::IMPL::is_iterating ( ) const

Definition at line 82 of file observable.cpp.

◆ is_shared()

bool UTIL::DETAIL::OBSERVABLE_BASE::IMPL::is_shared ( ) const

Definition at line 50 of file observable.cpp.

◆ leave_iteration()

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

Definition at line 73 of file observable.cpp.

◆ remove_observer()

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

Definition at line 95 of file observable.cpp.

◆ set_shared()

void UTIL::DETAIL::OBSERVABLE_BASE::IMPL::set_shared ( )

Definition at line 56 of file observable.cpp.

Member Data Documentation

◆ iteration_count_

unsigned int UTIL::DETAIL::OBSERVABLE_BASE::IMPL::iteration_count_

Definition at line 73 of file observable.h.

◆ observers_

std::vector<void*> UTIL::DETAIL::OBSERVABLE_BASE::IMPL::observers_

Definition at line 72 of file observable.h.

◆ owned_by_

OBSERVABLE_BASE* UTIL::DETAIL::OBSERVABLE_BASE::IMPL::owned_by_

Definition at line 74 of file observable.h.


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