RequestEngine< FeaturePolicyT, FeatureListT > Struct Template Reference
This class provides utilities for inspecting what features are available in a plugin. More...
#include <RequestEngine.hh>
Public Types | |
using | EnginePtrType = EnginePtr< FeaturePolicyT, FeatureListT > |
using | Features = FeatureListT |
Static Public Member Functions | |
template<typename PtrT > | |
static EnginePtrType | From (const PtrT &_pimpl, const std::size_t _engineID=0) |
Get an Engine from the given physics plugin. | |
template<typename PtrT > | |
static std::set< std::string > | MissingFeatureNames (const PtrT &_pimpl) |
Get a set of the names of the requested features that are missing from this plugin. | |
template<typename PtrT > | |
static bool | Verify (const PtrT &_pimpl) |
Check that a physics plugin has all the requested features. | |
Detailed Description
template<typename FeaturePolicyT, typename FeatureListT>
struct gz::physics::RequestEngine< FeaturePolicyT, FeatureListT >
struct gz::physics::RequestEngine< FeaturePolicyT, FeatureListT >
This class provides utilities for inspecting what features are available in a plugin.
Member Typedef Documentation
◆ EnginePtrType
template<typename FeaturePolicyT , typename FeatureListT >
using EnginePtrType = EnginePtr<FeaturePolicyT, FeatureListT> |
◆ Features
template<typename FeaturePolicyT , typename FeatureListT >
using Features = FeatureListT |
Member Function Documentation
◆ From()
template<typename FeaturePolicyT , typename FeatureListT >
template<typename PtrT >
|
static |
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()
template<typename FeaturePolicyT , typename FeatureListT >
template<typename PtrT >
|
static |
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.
◆ Verify()
template<typename FeaturePolicyT , typename FeatureListT >
template<typename PtrT >
|
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.
The documentation for this struct was generated from the following file: