#include "QGpCoreToolsDLLExport.h"
Go to the source code of this file.
Classes | |
class | QGpCoreTools::AbstractNumericalKey |
Brief description of class still missing. More... | |
Namespaces | |
namespace | QGpCoreTools |
Defines | |
#define | DECLARE_NUMERICALKEY(_KeyClass_) |
#define | IMPLEMENT_NUMERICALKEY(_KeyClass_) |
#define DECLARE_NUMERICALKEY | ( | _KeyClass_ | ) |
public: \ virtual int id() const {return _id;} \ private: \ friend class _KeyClass_##Register; \ static int _id;
#define IMPLEMENT_NUMERICALKEY | ( | _KeyClass_ | ) |
int _KeyClass_::_id=0; \
class _KeyClass_##Register \
{ \
public: \
_KeyClass_##Register() {_KeyClass_::_id=AbstractNumericalKey::newId();} \
}; \
_KeyClass_##Register autoRegister##_KeyClass_;