MeVisLab Toolbox Reference
mlPropertiesMacros.h File Reference

Go to the source code of this file.

Macros

#define STATIC_CASTED_GRAPH_PROPERTY(VisibleType, StoredType, lowerCaseName, upperCaseName)
 
#define STATIC_GRAPH_PROPERTY(Type, lowerCaseName, upperCaseName)
 
#define READ_OLD_STATIC_PROPERTY(Type, parent, tagName, setFunction)
 

Macro Definition Documentation

◆ READ_OLD_STATIC_PROPERTY

#define READ_OLD_STATIC_PROPERTY ( Type,
parent,
tagName,
setFunction )
Value:
{ \
Type tmp; \
parent->readChild(tmp, tagName); \
}
Target mlrange_cast(Source arg)
Generic version of checked ML casts.

Definition at line 35 of file mlPropertiesMacros.h.

◆ STATIC_CASTED_GRAPH_PROPERTY

#define STATIC_CASTED_GRAPH_PROPERTY ( VisibleType,
StoredType,
lowerCaseName,
upperCaseName )
Value:
private: \
public: \
VisibleType get##upperCaseName() const { return static_cast<VisibleType>(_##lowerCaseName##Accessor.get(*this)); } \
void set##upperCaseName(const VisibleType& newValue) { _##lowerCaseName##Accessor.set(*this, static_cast<StoredType>(newValue)); }
Project global and OS specific declarations.

Definition at line 20 of file mlPropertiesMacros.h.

◆ STATIC_GRAPH_PROPERTY

#define STATIC_GRAPH_PROPERTY ( Type,
lowerCaseName,
upperCaseName )
Value:
private: \
public: \
Type get##upperCaseName() const { return Type(_##lowerCaseName##Accessor.get(*this)); } \
void set##upperCaseName(const Type& newValue) { _##lowerCaseName##Accessor.set(*this, newValue); }

Definition at line 27 of file mlPropertiesMacros.h.