libzypp: zypp-core/ng/base/private/base_p.h Source File

libzypp 17.38.14

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/ng/base/zyppglobal.h>
5#include <zypp-core/ng/base/base.h>
6#include <zypp-core/ng/base/signals.h>
7#include <unordered_set>
8#include <thread>
9
10namespace 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 std::unordered_map<uint32_t, zypp::AutoDispose<void *> > _data;
25 Base *z_ptr = nullptr;
26 std::thread::id threadId = std::this_thread::get_id();
27 };
28
29}
30
31
32#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:25
zyppng::BasePrivate::_data
std::unordered_map< uint32_t, zypp::AutoDispose< void * > > _data
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:26
zyppng::BasePrivate::BasePrivate
BasePrivate(Base &b)
Definition base_p.h:17
zyppng::Base
Definition base.h:61
zyppng::Base::WeakPtr
std::weak_ptr< Base > WeakPtr
Definition base.h:67
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:91