This class provides utilities for inspecting what features are available in a plugin.
More...
#include <RequestEngine.hh>
template<typename FeaturePolicyT, typename FeatureListT>
struct ignition::physics::RequestEngine< FeaturePolicyT, FeatureListT >
This class provides utilities for inspecting what features are available in a plugin.
◆ EnginePtrType
◆ Features
using Features = typename FeatureListT::Features |
◆ From() [1/2]
◆ From() [2/2]
Get an Engine from the given physics plugin.
- Parameters
-
[in] | _pimpl | PluginPtr to the physics plugin |
[in] | _engineID | The ID of the engine that you want to receive from the plugin. Usually this will be 0. The result of requesting a value other than 0 is determined by the plugin that you are using. |
- Template Parameters
-
PtrT | The type of PluginPtr that you are providing. This will typically be inferred from the input argument. |
- Returns
- A pointer to a physics engine with the requested features. If any of the requested features aren't available in the given plugin, this will be a nullptr. MissingFeatureNames() can be used to inspect which features are missing.
◆ MissingFeatureNames()
Get a set of the names of the requested features that are missing from this plugin.
- Parameters
-
[in] | _pimpl | The PluginPtr to the plugin. |
- Template Parameters
-
PtrT | The type of PluginPtr that you are providing. This will typically be inferred from the input argument. |
- Returns
- A set of all the names of the requested features that are missing from the plugin.
Referenced by RequestEngine< FeaturePolicyT, FeatureListT >::Verify().
◆ Verify()
bool Verify |
( |
const PtrT & |
_pimpl | ) |
|
|
static |
Check that a physics plugin has all the requested features.
- Parameters
-
[in] | _pimpl | The PluginPtr to the plugin. |
- Template Parameters
-
PtrT | The type of PluginPtr that you are providing. This will typically be inferred from the input argument. |
- Returns
- True if all the requested features are available from the plugin.
References RequestEngine< FeaturePolicyT, FeatureListT >::MissingFeatureNames().
The documentation for this struct was generated from the following file: