libzypp 17.37.10

base_p.h
Go to the documentation of this file.
1#ifndef ZYPP_NG_BASE_PRIVATE_BASE_P_H_INCLUDED
2#define ZYPP_NG_BASE_PRIVATE_BASE_P_H_INCLUDED
3
4#include <zypp-core/zyppng/base/zyppglobal.h>
5#include <zypp-core/zyppng/base/base.h>
6#include <zypp-core/zyppng/base/signals.h>
7#include <unordered_set>
8#include <thread>
9
10 namespace zyppng
11{
12
13 class BasePrivate : public sigc::trackable
14 {
15 ZYPP_DECLARE_PUBLIC(Base)
16 public:
17 BasePrivate ( Base &b ) : z_ptr(&b){}
18 virtual ~BasePrivate();
19
20 virtual void init ();
21
22 Base::WeakPtr parent;
23 std::unordered_set< Base::Ptr > children;
24 Base *z_ptr = nullptr;
25 std::thread::id threadId = std::this_thread::get_id();
26 };
27
28}
29
30
31#endif
base.h
zyppng::BasePrivate::~BasePrivate
virtual ~BasePrivate()
Definition base.cc:5
zyppng::BasePrivate::parent
Base::WeakPtr parent
Definition base_p.h:22
zyppng::BasePrivate::children
std::unordered_set< Base::Ptr > children
Definition base_p.h:23
zyppng::BasePrivate::z_ptr
Base * z_ptr
Definition base_p.h:24
zyppng::BasePrivate::init
virtual void init()
Definition base.cc:8
zyppng::BasePrivate::threadId
std::thread::id threadId
Definition base_p.h:25
zyppng::BasePrivate::BasePrivate
BasePrivate(Base &b)
Definition base_p.h:17
zyppng::Base
Definition base.h:60
zyppng::Base::WeakPtr
std::weak_ptr< Base > WeakPtr
Definition base.h:66
b
unsigned short b
Definition mediablocklist.cc:1
zyppng
Definition MediaNetworkRequestExecutor.h:16
signals.h
zyppglobal.h
ZYPP_DECLARE_PUBLIC
#define ZYPP_DECLARE_PUBLIC(Class)
Definition zyppglobal.h:98