Gazebo Gazebo

API Reference

6.16.0
StorageDescriptor< ComponentTypeT > Class Template Reference

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

#include <Factory.hh>

Public Member Functions

 StorageDescriptor ()=default
 Constructor. More...
 
std::unique_ptr< ComponentStorageBase > Create () const override
 Create an instance of a storage that holds ComponentTypeT components. More...
 
- Public Member Functions inherited from StorageDescriptorBase
 StorageDescriptorBase ()=default
 Constructor. More...
 
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.

Constructor & Destructor Documentation

◆ StorageDescriptor()

StorageDescriptor ( )
default

Constructor.

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: