PythonQt
Classes | Macros
PythonQtMisc.h File Reference
#include "PythonQtPythonInclude.h"
#include <vector>
#include <QVariant>

Go to the source code of this file.

Classes

class  PythonQtArgumentFrame
 Stores C++ arguments for a qt_metacall (which are created when converting data from Python to C++) More...
 

Macros

#define PYTHONQT_MAX_ARGS   32
 
#define PythonQtArgumentFrame_ADD_VALUE(store, type, value, ptr)
 
#define PythonQtArgumentFrame_ADD_VALUE_IF_NEEDED(alreadyAllocatedPtr, store, type, value, ptr)
 
#define PythonQtArgumentFrame_ADD_VARIANT_VALUE(store, value, ptr)
 
#define PythonQtArgumentFrame_ADD_VARIANT_VALUE_BY_ID(store, id, ptr)    PythonQtArgumentFrame_ADD_VARIANT_VALUE(store, QVariant::Type(id), ptr)
 
#define PythonQtArgumentFrame_ADD_VARIANT_VALUE_IF_NEEDED(alreadyAllocatedPtr, store, value, ptr)
 
#define PythonQtArgumentFrame_ADD_VARIANT_VALUE_BY_ID_IF_NEEDED(alreadyAllocatedPtr, store, id, ptr)    PythonQtArgumentFrame_ADD_VARIANT_VALUE_IF_NEEDED(alreadyAllocatedPtr,store, QVariant::Type(id), ptr)
 

Detailed Description

Author
Florian Link
Last changed by
Author
florian
Date
2006-05

Definition in file PythonQtMisc.h.

Macro Definition Documentation

◆ PYTHONQT_MAX_ARGS

#define PYTHONQT_MAX_ARGS   32

Definition at line 49 of file PythonQtMisc.h.

◆ PythonQtArgumentFrame_ADD_VALUE

#define PythonQtArgumentFrame_ADD_VALUE (   store,
  type,
  value,
  ptr 
)
Value:
{ type* item = (type*)store->nextPODPtr(); \
*item = value; \
ptr = (void*)item; \
}

Definition at line 51 of file PythonQtMisc.h.

◆ PythonQtArgumentFrame_ADD_VALUE_IF_NEEDED

#define PythonQtArgumentFrame_ADD_VALUE_IF_NEEDED (   alreadyAllocatedPtr,
  store,
  type,
  value,
  ptr 
)
Value:
{ \
type* item = (type*)(alreadyAllocatedPtr?alreadyAllocatedPtr:store->nextPODPtr()); \
*item = value; \
ptr = (void*)item; \
}

Definition at line 57 of file PythonQtMisc.h.

◆ PythonQtArgumentFrame_ADD_VARIANT_VALUE

#define PythonQtArgumentFrame_ADD_VARIANT_VALUE (   store,
  value,
  ptr 
)
Value:
{ QVariant* item = store->nextVariantPtr(); \
*item = value; \
ptr = (void*)item; \
}

Definition at line 64 of file PythonQtMisc.h.

◆ PythonQtArgumentFrame_ADD_VARIANT_VALUE_BY_ID

#define PythonQtArgumentFrame_ADD_VARIANT_VALUE_BY_ID (   store,
  id,
  ptr 
)     PythonQtArgumentFrame_ADD_VARIANT_VALUE(store, QVariant::Type(id), ptr)

Definition at line 77 of file PythonQtMisc.h.

◆ PythonQtArgumentFrame_ADD_VARIANT_VALUE_BY_ID_IF_NEEDED

#define PythonQtArgumentFrame_ADD_VARIANT_VALUE_BY_ID_IF_NEEDED (   alreadyAllocatedPtr,
  store,
  id,
  ptr 
)     PythonQtArgumentFrame_ADD_VARIANT_VALUE_IF_NEEDED(alreadyAllocatedPtr,store, QVariant::Type(id), ptr)

Definition at line 96 of file PythonQtMisc.h.

◆ PythonQtArgumentFrame_ADD_VARIANT_VALUE_IF_NEEDED

#define PythonQtArgumentFrame_ADD_VARIANT_VALUE_IF_NEEDED (   alreadyAllocatedPtr,
  store,
  value,
  ptr 
)
Value:
{ \
QVariant* item = (QVariant*)(alreadyAllocatedPtr?alreadyAllocatedPtr:store->nextVariantPtr()); \
*item = value; \
ptr = (void*)item; \
}

Definition at line 82 of file PythonQtMisc.h.