Gazebo Sim

API Reference

8.7.0
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
 Documentation inherited. More...
 
virtual std::unique_ptr< BaseComponentCreate (const components::BaseComponent *_data) const override
 Documentation inherited. More...
 
- Public Member Functions inherited from ComponentDescriptorBase
virtual ~ComponentDescriptorBase ()=default
 Destructor. More...
 

Detailed Description

template<typename ComponentTypeT>
class gz::sim::components::ComponentDescriptor< ComponentTypeT >

A class for an object responsible for creating components.

Template Parameters
ComponentTypeTtype of component to describe.

Member Function Documentation

◆ Create() [1/2]

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

Documentation inherited.

Implements ComponentDescriptorBase.

◆ Create() [2/2]

virtual std::unique_ptr<BaseComponent> Create ( const components::BaseComponent _data) const
inlineoverridevirtual

Documentation inherited.

Implements ComponentDescriptorBase.


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