API Guides > ConceptRT 3.x
Properties declaration

Detailed Description

Helper macros to declare a property with its getter and setter.

    PROPERTY_[ | PROTECTED | PRIVATE]_GET_[ | PROTECTED | PRIVATE]_SET(type, name)

Macros

#define PROPERTY_GET_SET(type, name)
 Helper to declare a property. More...
 
#define PROPERTY_PROTECTED_GET_SET(type, name)
 Helper to declare a property. More...
 
#define PROPERTY_PRIVATE_GET_SET(type, name)
 Helper to declare a property. More...
 
#define PROPERTY_GET_PROTECTED_SET(type, name)
 Helper to declare a property. More...
 
#define PROPERTY_GET_PRIVATE_SET(type, name)
 Helper to declare a property. More...
 
#define PROPERTY_PROTECTED_GET_PRIVATE_SET(type, name)
 Helper to declare a property. More...
 
#define PROPERTY_PRIVATE_GET_PRIVATE_SET(type, name)
 Helper to declare a property. More...
 
#define PROPERTY_PROTECTED_GET_PROTECTED_SET(type, name)
 Helper to declare a property. More...
 
#define PROPERTY_PRIVATE_GET_PROTECTED_SET(type, name)
 Helper to declare a property. More...
 

Macro Definition Documentation

#define PROPERTY_GET_PRIVATE_SET (   type,
  name 
)

Helper to declare a property.

Getter is public and Setter is private.

Parameters
typeThe property type. The property type should be scalar.
nameThe property name. Getter and Setter are created with Getname() and Setname().

Direct access to the field is possible using name (private).

Context of use : Class declaration.

#define PROPERTY_GET_PROTECTED_SET (   type,
  name 
)

Helper to declare a property.

Getter is public and Setter is protected.

Parameters
typeThe property type. The property type should be scalar.
nameThe property name. Getter and Setter are created with Getname() and Setname().

Direct access to the field is possible using name (private).

Context of use : Class declaration.

#define PROPERTY_GET_SET (   type,
  name 
)

Helper to declare a property.

Getter and Setter are public.

Parameters
typeThe property type. The property type should be scalar.
nameThe property name. Getter and Setter are created with Getname() and Setname().

Direct access to the field is possible using name (private).

Context of use : Class declaration.

Examples:
DynamicInvocation/2.Macros/DynamicInvocationMacros.h, and Machine/main.cpp.
#define PROPERTY_PRIVATE_GET_PRIVATE_SET (   type,
  name 
)

Helper to declare a property.

Getter and setter are private.

Parameters
typeThe property type. The property type should be scalar.
nameThe property name. Getter and Setter are created with Getname() and Setname().

Direct access to the field is possible using name (private).

Context of use : Class declaration.

#define PROPERTY_PRIVATE_GET_PROTECTED_SET (   type,
  name 
)

Helper to declare a property.

Getter is private and setter is protected.

Parameters
typeThe property type. The property type should be scalar.
nameThe property name. Getter and Setter are created with Getname() and Setname().

Direct access to the field is possible using name (private).

Context of use : Class declaration.

#define PROPERTY_PRIVATE_GET_SET (   type,
  name 
)

Helper to declare a property.

Getter is private and Setter is public.

Parameters
typeThe property type. The property type should be scalar.
nameThe property name. Getter and Setter are created with Getname() and Setname().

Direct access to the field is possible using name (private).

Context of use : Class declaration.

#define PROPERTY_PROTECTED_GET_PRIVATE_SET (   type,
  name 
)

Helper to declare a property.

Getter is protected and Setter is private.

Parameters
typeThe property type. The property type should be scalar.
nameThe property name. Getter and Setter are created with Getname() and Setname().

Direct access to the field is possible using name (private).

Context of use : Class declaration.

#define PROPERTY_PROTECTED_GET_PROTECTED_SET (   type,
  name 
)

Helper to declare a property.

Getter and setter are protected.

Parameters
typeThe property type. The property type should be scalar.
nameThe property name. Getter and Setter are created with Getname() and Setname().

Direct access to the field is possible using name (private).

Context of use : Class declaration.

#define PROPERTY_PROTECTED_GET_SET (   type,
  name 
)

Helper to declare a property.

Getter is protected and Setter is public.

Parameters
typeThe property type. The property type should be scalar.
nameThe property name. Getter and Setter are created with Getname() and Setname().

Direct access to the field is possible using name (private).

Context of use : Class declaration.