PionNetworkLibrary
|
#include <plugin.hpp>
Public Member Functions | |
plugin_instance_ptr (void) | |
default constructor & destructor More... | |
virtual | ~plugin_instance_ptr () |
virtual destructor / may be extended More... | |
void | reset (void) |
reset the instance pointer More... | |
void | create (const std::string &plugin_type) |
create a new instance of the given plugin_type More... | |
bool | empty (void) const |
returns true if pointer is empty More... | |
InterfaceClassType * | get (void) |
return a raw pointer to the instance More... | |
InterfaceClassType & | operator* (void) |
return a reference to the instance More... | |
const InterfaceClassType & | operator* (void) const |
return a const reference to the instance More... | |
InterfaceClassType * | operator-> (void) |
return a reference to the instance More... | |
const InterfaceClassType * | operator-> (void) const |
return a const reference to the instance More... | |
Protected Attributes | |
plugin_ptr< InterfaceClassType > | m_plugin_ptr |
smart pointer that manages the plugin's dynamic object code More... | |
InterfaceClassType * | m_instance_ptr |
raw pointer to the plugin instance More... | |
plugin_instance_ptr: smart pointer that manages a plug-in instance
|
inline |
default constructor & destructor
|
inlinevirtual |
virtual destructor / may be extended
References pion::plugin_instance_ptr< InterfaceClassType >::reset().
|
inline |
create a new instance of the given plugin_type
References pion::plugin_instance_ptr< InterfaceClassType >::m_instance_ptr, pion::plugin_instance_ptr< InterfaceClassType >::m_plugin_ptr, and pion::plugin_instance_ptr< InterfaceClassType >::reset().
|
inline |
returns true if pointer is empty
References pion::plugin_instance_ptr< InterfaceClassType >::m_instance_ptr.
|
inline |
return a raw pointer to the instance
References pion::plugin_instance_ptr< InterfaceClassType >::m_instance_ptr.
|
inline |
return a reference to the instance
References pion::plugin_instance_ptr< InterfaceClassType >::m_instance_ptr.
|
inline |
return a const reference to the instance
References pion::plugin_instance_ptr< InterfaceClassType >::m_instance_ptr.
|
inline |
return a reference to the instance
References pion::plugin_instance_ptr< InterfaceClassType >::m_instance_ptr.
|
inline |
return a const reference to the instance
References pion::plugin_instance_ptr< InterfaceClassType >::m_instance_ptr.
|
inline |
reset the instance pointer
References pion::plugin_instance_ptr< InterfaceClassType >::m_instance_ptr, and pion::plugin_instance_ptr< InterfaceClassType >::m_plugin_ptr.
Referenced by pion::plugin_instance_ptr< InterfaceClassType >::create(), and pion::plugin_instance_ptr< InterfaceClassType >::~plugin_instance_ptr().
|
protected |
raw pointer to the plugin instance
Referenced by pion::plugin_instance_ptr< InterfaceClassType >::create(), pion::plugin_instance_ptr< InterfaceClassType >::empty(), pion::plugin_instance_ptr< InterfaceClassType >::get(), pion::plugin_instance_ptr< InterfaceClassType >::operator*(), pion::plugin_instance_ptr< InterfaceClassType >::operator->(), and pion::plugin_instance_ptr< InterfaceClassType >::reset().
|
protected |
smart pointer that manages the plugin's dynamic object code
Referenced by pion::plugin_instance_ptr< InterfaceClassType >::create(), and pion::plugin_instance_ptr< InterfaceClassType >::reset().