Developer Documentation

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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

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

Value:
class DLLEXPORT _CLASS : public PerObjectData { \
\
public: \
inline _CLASS() : data_( 0) { } \
inline _CLASS(const _VALUE& _x) : data_(_x) { } \
inline virtual ~_CLASS() { } \
inline virtual _CLASS* copyPerObjectData() { 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:70
DLLEXPORT
#define DLLEXPORT
Definition: GlobalDefines.hh:107
PerObjectData
Object Payload.
Definition: perObjectData.hh:86

Definition at line 109 of file perObjectData.hh.