API Guides > ConceptRT 3.x
Data structure

Detailed Description

class MyDataStructure: public DataStructure
{
CONCEPT_DEFINE_CLASS(MyDataStructure, DataStructure)
RT_DYNAMIC_CAST_1(MyDataStructure, DataStructure) // when CONCEPTRT_WITHOUT_RTTI used
public:
Int32 i;
Float64 x;
FIELDS_BASECLASS // optional
};

Classes

class  DataStructure
 Creates invocable and serializable structure. More...
 

Macros

#define FIELDS_BEGIN
 DataStructure fields begin. More...
 
#define FIELDS_BASECLASS
 call DataStructure baseclass behavior. (Optional macro) More...
 
#define FIELDS_ITEM(field)
 DataStructure fields item. More...
 
#define FIELDS_END
 DataStructure fields end. More...
 

Macro Definition Documentation

#define FIELDS_BASECLASS

call DataStructure baseclass behavior. (Optional macro)

Warning
need CONCEPT_DEFINE_CLASS before use

Context of use : Class declaration.

#define FIELDS_BEGIN

DataStructure fields begin.

Context of use : Class declaration.

Examples:
Machine/main.cpp.
#define FIELDS_END

DataStructure fields end.

Context of use : Class declaration.

Examples:
Machine/main.cpp.
#define FIELDS_ITEM (   field)

DataStructure fields item.

Parameters
fieldThe field.

Context of use : Class declaration.

Examples:
Machine/main.cpp.