Gazebo Sim

API Reference

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

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]

template<typename ComponentTypeT >
std::unique_ptr< BaseComponent > Create ( ) const
inlineoverridevirtual

Documentation inherited.

Implements ComponentDescriptorBase.

◆ Create() [2/2]

template<typename ComponentTypeT >
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: