gz/common/PluginPtr.hh
bool operator>=(const TemplatePluginPtr &_other) const
Comparison operator.
friend class TemplatePluginPtr
Definition: gz/common/PluginPtr.hh:217
bool operator<=(const TemplatePluginPtr &_other) const
Comparison operator.
Forward declarations for the common classes.
bool operator!=(const TemplatePluginPtr &_other) const
Comparison operator.
bool operator==(const TemplatePluginPtr &_other) const
Comparison operator. Returns true if this Plugin is holding the same plugin instance as _other,...
bool operator>(const TemplatePluginPtr &_other) const
Comparison operator.
std::size_t Hash() const
Produces a hash for the plugin instance that this PluginPtr is holding. This function allows PluginPt...
~TemplatePluginPtr()=default
Destructor. Deletes this PluginPtr's reference to the plugin instance. Once all PluginPtrs that refer...
void Clear()
Clears the Plugin instance from this PluginPtr. IsEmpty() will return true after this is used,...
Holds info required to construct a plugin.
Definition: gz/common/PluginInfo.hh:40
PluginType & operator*() const
Get a reference to the wrapper for the plugin instance that is being managed by this PluginPtr.
TemplatePluginPtr & operator=(const TemplatePluginPtr &_other)
Copy assignment operator. This PluginPtr will now point at the same plugin instance as _other,...
bool operator<(const TemplatePluginPtr &_other) const
Comparison operator.
bool IsEmpty() const
Check if this PluginPtr is holding a plugin instance.
PluginType * operator->() const
Access the wrapper for the plugin instance and call one of its member functions.
This class manages the lifecycle of a plugin instance. It can receive a plugin instance from the igni...
Definition: gz/common/PluginPtr.hh:54