Developer Documentation

Classes | Macros | Functions
perObjectData.hh File Reference
`#include <OpenFlipper/common/GlobalDefines.hh>`

Go to the source code of this file.

## Classes
class | PerObjectData
| Object Payload. More...

## Macros
#define | PER_OBJECT_DATA(_CLASS, _VALUE)

## Functions
| PER_OBJECT_DATA (BoolPerObjectData, bool)
| PER_OBJECT_DATA (CharPerObjectData, char)
| PER_OBJECT_DATA (UCharPerObjectData, unsigned char)
| PER_OBJECT_DATA (IntPerObjectData, int)
| PER_OBJECT_DATA (UIntPerObjectData, unsigned int)
| PER_OBJECT_DATA (FloatPerObjectData, float)
| PER_OBJECT_DATA (DoublePerObjectData, double)

## Detailed Description

This File contains a basic data class used to attach data to objects.

Definition in file perObjectData.hh.

## Macro Definition Documentation

## ◆ PER_OBJECT_DATA

#define PER_OBJECT_DATA | ( |  | _CLASS,
|  |  | _VALUE
| ) |  |

Value:
class DLLEXPORT _CLASS : public PerObjectData { \
\
public: \
inline _CLASS() : data_( 0) { } \
inline explicit _CLASS(const _VALUE& _x) : data_(_x) { } \
inline virtual ~_CLASS() { } \
inline virtual _CLASS* copyPerObjectData() override { return new _CLASS(data_); } \
inline _VALUE& data() { return data_; } \
inline const _VALUE& data() const { return data_; } \
private: \
_VALUE data_; \
}
PerObjectData::copyPerObjectData
virtual PerObjectData * copyPerObjectData()
Copy Function.
Definition: perObjectData.cc:61
DLLEXPORT
#define DLLEXPORT
Definition: GlobalDefines.hh:95
PerObjectData
Object Payload.
Definition: perObjectData.hh:73

Definition at line 96 of file perObjectData.hh.