constraintmap.h
来自「压缩包里有教材<<C++模式设计-基于QT4开源跨平台开发框架>」· C头文件 代码 · 共 22 行
H
22 行
#ifndef CONSTRAINTMAP_H#define CONSTRAINTMAP_H/* included class definitions: */#include <QHash>#include <QString>class Constraint; /* forward declaration */class ConstraintMap : public QHash<QString, Constraint*> { /* Needs definitions of QHash and QString, but only the declaration of Constraint, because it's a pointer. */private: Constraint* m_Constraintptr; /* No problem, it's just a pointer. */// Constraint m_ConstraintObj; /* error: incomplete type */ void addConstraint(Constraint& c); /* using forward declaration */ };#endif // #ifndef CONSTRAINTMAP_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?