siplasplas
Classes | Macros
Dynamic-reflection

Access to dynamic reflection information. More...

Classes

class  cpp::dynamic_reflection::Class
 Stores dynamic reflection information of a class type. More...
 
class  cpp::dynamic_reflection::Entity
 Represents a C++ semantic entity (Class, function, namespace, etc) and manages its dynamic reflection information. More...
 
class  cpp::dynamic_reflection::Enum
 Stores dynamic reflection information of an enumeration type. More...
 
class  cpp::dynamic_reflection::Field
 Stores dynamic reflection information of a member object. More...
 
class  cpp::dynamic_reflection::Function
 Stires dynamic reflection information of a function. More...
 
class  cpp::dynamic_reflection::Namespace
 Stores dynamic reflection information of a namespace. More...
 
class  cpp::dynamic_reflection::Runtime
 Provides access to dynamic type and function information at runtime. More...
 
class  cpp::dynamic_reflection::RuntimeLoader
 Loads dynamic reflection information from an external library. More...
 

Macros

#define SIPLASPLAS_REFLECTION_DYNAMIC_EXPORT_TYPES(...)
 Exports dynamic reflection information of the given types. More...
 

Detailed Description

Access to dynamic reflection information.

Examples:

Macro Definition Documentation

§ SIPLASPLAS_REFLECTION_DYNAMIC_EXPORT_TYPES

#define SIPLASPLAS_REFLECTION_DYNAMIC_EXPORT_TYPES (   ...)
Value:
extern "C" void SIPLASPLAS_REFLECTION_DYNAMIC_LOADTYPES( \
void* context, \
::cpp::dynamic_reflection::detail::ClassLoader loadClass, \
::cpp::dynamic_reflection::detail::EnumLoader loadEnum, \
::cpp::dynamic_reflection::detail::EnumValueLoader loadEnumValue, \
::cpp::dynamic_reflection::detail::MethodLoader loadMethod, \
::cpp::dynamic_reflection::detail::FieldLoader loadField \
) \
{ \
::cpp::dynamic_reflection::detail::loadTypes<__VA_ARGS__>( \
context, \
loadClass, \
loadEnum, \
loadEnumValue, \
loadMethod, \
loadField \
); \
}

Exports dynamic reflection information of the given types.

This macro defines a C API function to load dynamic reflection information of the given types across DLLs.

cpp::dynamic_reflection::RuntimeLoader class takes a dynamic library loaded at runtime and uses this exported C API to load type information into a cpp::dynamic_reflection::Runtime object.

Parameters
Variadicpack of types to export