简体   繁体   English

d指针中的“d”代表什么?

[英]What does “d” stand for in d-pointer?

Qt makes heavy use of the PIMPL idiom in their development process: https://wiki.qt.io/D-Pointer Qt 在其开发过程中大量使用 PIMPL 成语: https://wiki.qt.io/D-Pointer

As I've read here : "The name 'd-pointer' stems from Trolltech's Arnt Gulbrandsen, who first introduced the technique into Qt, making it one of the first C++ GUI libraries to maintain binary compatibility even between bigger release."正如我在这里读到的: “'d-pointer' 这个名字源于奇趣科技的 Arnt Gulbrandsen,他首先将该技术引入 Qt,使其成为首批 C++ GUI 库之一,即使在更大的版本之间也能保持二进制兼容性。” . . But nobody says what "D" stands for.但是没有人说“D”代表什么。

So what does the "D" stand for in D-Pointer?那么 D-Pointer 中的“D”代表什么?

From this pageData Sharing with Class (an old docs from QT), it says:从this pageData Sharing with Class (来自QT的旧文档),它说:

Before we can share an object's private data, we must separate its interface from the private data using an idiom called "d-pointer" (data pointer)在我们可以共享对象的私有数据之前,我们必须使用称为“d-pointer”(数据指针)的习语将其接口与私有数据分开

So, d-pointer means data-pointer所以,d-pointer 表示数据指针

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM