Developer Documentation
perObjectData.hh File Reference

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() { return new _CLASS(data_); } \
inline _VALUE& data() { return data_; } \
inline const _VALUE& data() const { return data_; } \
private: \
_VALUE data_; \
}
Object Payload.
virtual PerObjectData * copyPerObjectData()
Copy Function.
#define DLLEXPORT

Definition at line 96 of file perObjectData.hh.