HPX - High Performance ParalleX

PrevUpHomeNext

Macro HPX_REGISTER_COMPONENT

HPX_REGISTER_COMPONENT — Define a component factory for a component type.

Synopsis

// In header: <hpx/runtime/components/component_factory.hpp>

HPX_REGISTER_COMPONENT(type, name, mode)

Description

This macro is used create and to register a minimal component factory for a component type which allows it to be remotely created using the hpx::new_<> function.

This macro can be invoked with one, two or three arguments

Parameters:

mode

The mode parameter has to be one of the defined enumeration values of the enumeration hpx::components::factory_state_enum. The default for this parameter is hpx::components::factory_enabled.

name

The name parameter specifies the name to use to register the factory. This should uniquely (system-wide) identify the component type. The name parameter must conform to the C++ identifier rules (without any namespace). If this parameter is not given, the first parameter is used.

type

The type parameter is a (fully decorated) type of the component type for which a factory should be defined.


PrevUpHomeNext