Gazebo Gazebo

API Reference

3.15.1
StorageDescriptor< ComponentTypeT > Class Template Reference

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

#include <Factory.hh>

Public Member Functions

std::unique_ptr< ComponentStorageBase > Create () const override
 Create an instance of a storage that holds ComponentTypeT components. More...
 
- Public Member Functions inherited from StorageDescriptorBase
virtual ~StorageDescriptorBase ()=default
 Destructor. More...
 

Detailed Description

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

A class for an object responsible for creating storages.

Template Parameters
ComponentTypeTtype of component that the storage will hold.

Member Function Documentation

◆ Create()

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

Create an instance of a storage that holds ComponentTypeT components.

Returns
Pointer to a component.

Implements StorageDescriptorBase.


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