Gazebo Gazebo

API Reference

3.15.2
ComponentDescriptor< ComponentTypeT > Class Template Reference

A class for an object responsible for creating components. More...

#include <Factory.hh>

Public Member Functions

std::unique_ptr< BaseComponentCreate () const override
 Create an instance of a ComponentTypeT Component. More...
 
- Public Member Functions inherited from ComponentDescriptorBase
virtual ~ComponentDescriptorBase ()=default
 Destructor. More...
 

Detailed Description

template<typename ComponentTypeT>
class ignition::gazebo::components::ComponentDescriptor< ComponentTypeT >

A class for an object responsible for creating components.

Template Parameters
ComponentTypeTtype of component to describe.

Member Function Documentation

◆ Create()

std::unique_ptr<BaseComponent> Create ( ) const
inlineoverridevirtual

Create an instance of a ComponentTypeT Component.

Returns
Pointer to a component.

Implements ComponentDescriptorBase.


The documentation for this class was generated from the following file: