Go to the documentation of this file.
18 #ifndef IGNITION_PHYSICS_REQUESTFEATURES_HH_
19 #define IGNITION_PHYSICS_REQUESTFEATURES_HH_
33 template <
typename ToFeatureList>
34 struct RequestFeatures
36 using Features =
typename ToFeatureList::Features;
49 typename FromFeatureList,
50 template <
typename,
typename>
class EntityT>
52 const EntityPtr<EntityT<PolicyT, FromFeatureList>> &_from);
65 typename FromFeatureList,
66 template <
typename,
typename>
class EntityT>
68 const EntityPtr<EntityT<PolicyT, FromFeatureList>> &_entity);
73 #include <ignition/physics/detail/RequestFeatures.hh>
static EntityPtr< EntityT< PolicyT, ToFeatureList > > From(const EntityPtr< EntityT< PolicyT, FromFeatureList >> &_from)
Cast an entity to another entity pointer, with the requested set of features.
static std::set< std::string > MissingFeatureNames(const EntityPtr< EntityT< PolicyT, FromFeatureList >> &_entity)
Check which features from the requested list are missing from the entity's plugin.
typename ToFeatureList::Features Features
Definition: RequestFeatures.hh:36