PluginPtr.hh
Go to the documentation of this file.
This class manages the lifecycle of a plugin instance. It can receive a plugin instance from the Load...
Definition: PluginPtr.hh:53
bool operator>(const TemplatePluginPtr &_other) const
Comparison operator.
TemplatePluginPtr(const TemplatePluginPtr &_other)
Copy constructor. This PluginPtr will now point at the same plugin instance as _other,...
TemplatePluginPtr(const TemplatePluginPtr< OtherPluginType > &_other)
Casting constructor. This PluginPtr will now point at the same plugin instance as _other,...
bool operator!=(const TemplatePluginPtr &_other) const
Comparison operator.
bool operator<(const TemplatePluginPtr &_other) const
Comparison operator.
TemplatePluginPtr(TemplatePluginPtr &&_other)
Move constructor. This PluginPtr will take ownership of the plugin instance held by _other....
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...
TemplatePluginPtr & operator=(TemplatePluginPtr &&_other)
Move assignment operator. This PluginPtr will take ownership of the plugin instance held by _other....
TemplatePluginPtr & operator=(const TemplatePluginPtr &_other)
Copy assignment operator. This PluginPtr will now point at the same plugin instance as _other,...
bool IsEmpty() const
Check whether this is pointing at a valid plugin.
friend class TemplatePluginPtr
Definition: PluginPtr.hh:197
void Clear()
Clears the Plugin instance from this PluginPtr. IsEmpty() will return true after this is used,...
PluginType & operator*() const
Get a reference to the wrapper for the plugin instance that is being managed by this PluginPtr.
bool operator==(const TemplatePluginPtr &_other) const
Comparison operator.
bool operator<=(const TemplatePluginPtr &_other) const
Comparison operator.
TemplatePluginPtr()
Default constructor. Creates a PluginPtr object that does not point to any plugin instance....
TemplatePluginPtr & operator=(std::nullptr_t _null)
nullptr assignment operator. Same as calling Clear()
bool operator>=(const TemplatePluginPtr &_other) const
Comparison operator.
PluginType * operator->() const
Access the wrapper for the plugin instance and call one of its member functions.
Definition: EnablePluginFromThis.hh:26