(22df353c14800d2e9b6d57a9a0cb9c6baa337999)
#include "qv4global_p.h"
#include "qv4value_p.h"
#include "qv4enginebase_p.h"
#include <private/qv4heap_p.h>
#include <private/qv4vtable_p.h>
Go to the source code of this file.
◆ Q_MANAGED_CHECK
Value: template <
typename Type>
inline void qt_check_for_QMANAGED_macro(
const Type *_q_argument)
const \
{ int i = qYouForgotTheQ_MANAGED_Macro(this, _q_argument); i = i + 1; }
Definition at line 28 of file qv4managed_p.h.
◆ Q_MANAGED_TYPE
#define Q_MANAGED_TYPE |
( |
| type | ) |
|
◆ V4_INTERNALCLASS
#define V4_INTERNALCLASS |
( |
| c | ) |
|
Value:
{
return e->internalClasses(QV4::EngineBase::Class_##
c); }
Definition at line 69 of file qv4managed_p.h.
◆ V4_MANAGED
#define V4_MANAGED |
( |
| DataClass, |
|
|
| superClass ) |
Value: private: \
DataClass() = delete; \
Q_DISABLE_COPY(DataClass) \
V4_MANAGED_ITSELF(DataClass, superClass) \
Q_STATIC_ASSERT(std::is_trivial_v<QV4::Heap::DataClass>);
Definition at line 58 of file qv4managed_p.h.
◆ V4_MANAGED_ITSELF
#define V4_MANAGED_ITSELF |
( |
| DataClass, |
|
|
| superClass ) |
Value: public: \
Q_MANAGED_CHECK \
typedef QV4::Heap::DataClass
Data; \
static inline const QV4::VTable *staticVTable() {
return &static_vtbl; } \
V4_MANAGED_SIZE_TEST \
QV4::Heap::DataClass *d_unchecked()
const {
return static_cast<QV4::Heap::DataClass *
>(
m()); } \
QV4::Heap::DataClass *d() const { \
QV4::Heap::DataClass *dptr = d_unchecked(); \
dptr->_checkIsInitialized(); \
return dptr; \
}
Definition at line 43 of file qv4managed_p.h.
◆ V4_MANAGED_SIZE_TEST
#define V4_MANAGED_SIZE_TEST void __dataTest() { static_assert (sizeof(*this) == sizeof(Managed), "Classes derived from Managed can't have own data members."); } |
◆ V4_NEEDS_DESTROY