Classes | Defines

qxtpimpl.h File Reference

Go to the source code of this file.

Classes

class  QxtPrivate< PUB >
class  QxtPrivateInterface< PUB, PVT >

Defines

#define QXT_DECLARE_PRIVATE(PUB)   friend class PUB##Private; QxtPrivateInterface<PUB, PUB##Private> qxt_d;
#define QXT_DECLARE_PUBLIC(PUB)   friend class PUB;
#define QXT_INIT_PRIVATE(PUB)   qxt_d.setPublic(this);
#define QXT_D(PUB)   PUB##Private& d = qxt_d()
#define QXT_P(PUB)   PUB& p = qxt_p()

Define Documentation

#define QXT_D (   PUB )    PUB##Private& d = qxt_d() [related]

Returns a reference in the current scope named "d" to the private class.

This function is only available in a class using QXT_DECLARE_PRIVATE.

Definition at line 148 of file qxtpimpl.h.

#define QXT_DECLARE_PRIVATE (   PUB )    friend class PUB##Private; QxtPrivateInterface<PUB, PUB##Private> qxt_d; [related]

Declares that a public class has a related private class.

This shuold be put in the private section of the public class. The parameter is the name of the public class.

Definition at line 129 of file qxtpimpl.h.

#define QXT_DECLARE_PUBLIC (   PUB )    friend class PUB; [related]

Declares that a private class has a related public class.

This may be put anywhere in the declaration of the private class. The parameter is the name of the public class.

Definition at line 135 of file qxtpimpl.h.

#define QXT_INIT_PRIVATE (   PUB )    qxt_d.setPublic(this); [related]
#define QXT_P (   PUB )    PUB& p = qxt_p() [related]

Creates a reference in the current scope named "q" to the public class.

This macro only works in a class using QXT_DECLARE_PUBLIC.

Definition at line 154 of file qxtpimpl.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines