SourceForge.net Logo
PythonQt
Classes | Macros
PythonQtMisc.h File Reference
#include <QList>

Go to the source code of this file.

Classes

class  PythonQtValueStoragePosition
 stores a position in the PythonQtValueStorage More...
 
class  PythonQtValueStorage< T, chunkEntries >
 a helper class that stores basic C++ value types in chunks More...
 
class  PythonQtValueStorageWithCleanup< T, chunkEntries >
 a helper class that stores basic C++ value types in chunks and clears the unused values on setPos() usage. More...
 

Macros

#define PythonQtValueStorage_ADD_VALUE(store, type, value, ptr)
 
#define PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedPtr, store, type, value, ptr)
 

Detailed Description

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

Definition in file PythonQtMisc.h.

Macro Definition Documentation

#define PythonQtValueStorage_ADD_VALUE (   store,
  type,
  value,
  ptr 
)
Value:
{ type* item = (type*)store.nextValuePtr(); \
*item = value; \
ptr = (void*)item; \
}

Definition at line 48 of file PythonQtMisc.h.

#define PythonQtValueStorage_ADD_VALUE_IF_NEEDED (   alreadyAllocatedPtr,
  store,
  type,
  value,
  ptr 
)
Value:
{ \
type* item = (type*)(alreadyAllocatedPtr?alreadyAllocatedPtr:store.nextValuePtr()); \
*item = value; \
ptr = (void*)item; \
}

Definition at line 54 of file PythonQtMisc.h.