SourceForge.net Logo
Classes | Defines

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...

Defines

#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.


Define 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.