|
libzypp
17.22.0
|
#include <base.h>

Public Types | |
| using | Ptr = std::shared_ptr< Base > |
| using | WeakPtr = std::weak_ptr< Base > |
Public Member Functions | |
| Base () | |
| virtual | ~Base () |
| WeakPtr | parent () const |
| void | addChild (Base::Ptr child) |
| void | removeChild (Ptr child) |
| const std::unordered_set< Ptr > & | children () const |
| template<typename T > | |
| std::vector< std::weak_ptr< T > > | findChildren () const |
| template<typename T > | |
| std::shared_ptr< T > | shared_this () const |
| template<typename T > | |
| std::shared_ptr< T > | shared_this () |
| template<typename T > | |
| std::weak_ptr< T > | weak_this () const |
| template<typename T > | |
| std::weak_ptr< T > | weak_this () |
Protected Member Functions | |
| Base (BasePrivate &dd) | |
Protected Attributes | |
| std::unique_ptr< BasePrivate > | d_ptr |
Private Member Functions | |
| NON_COPYABLE (Base) | |
The Base class is used as a common base class for objects that emit signals, it also supports a parent/child relationship where the parent object tracks keeps a reference for all its children.
| using zyppng::Base::Ptr = std::shared_ptr<Base> |
| using zyppng::Base::WeakPtr = std::weak_ptr<Base> |
|
protected |
|
private |
| Base::WeakPtr zyppng::Base::parent | ( | ) | const |
| void zyppng::Base::addChild | ( | Base::Ptr | child | ) |
| void zyppng::Base::removeChild | ( | Base::Ptr | child | ) |
| const std::unordered_set< Base::Ptr > & zyppng::Base::children | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |