OSVR-Core
|
Class that should be used for all internally-used client interface objects as it handles ownership with respect to the client context properly. More...
#include <InternalInterfaceOwner.h>
Public Types | |
typedef osvr::common::ClientInterface | contained_type |
typedef contained_type & | reference |
typedef contained_type * | pointer |
Public Member Functions | |
InternalInterfaceOwner () | |
Empty constructor. | |
InternalInterfaceOwner (common::ClientContext *ctx, OSVR_ClientInterface iface) | |
Constructor. | |
InternalInterfaceOwner (common::ClientContext *ctx, common::ClientInterfacePtr const &iface) | |
Constructor that keeps an additional reference to the interface. More... | |
InternalInterfaceOwner (common::ClientContext *ctx, const char path[]) | |
Constructor from a context and path. | |
InternalInterfaceOwner (InternalInterfaceOwner const &)=delete | |
non-copyable | |
InternalInterfaceOwner & | operator= (InternalInterfaceOwner const &)=delete |
non-assignable | |
InternalInterfaceOwner (InternalInterfaceOwner &&other) | |
move constructible | |
InternalInterfaceOwner & | operator= (InternalInterfaceOwner &&other) |
move-assignable | |
operator bool () const | |
Check to see if valid. | |
~InternalInterfaceOwner () | |
Destructor - frees interface. | |
Act like a pointer | |
reference | operator* () const |
pointer | operator-> () const |
Class that should be used for all internally-used client interface objects as it handles ownership with respect to the client context properly.
|
inline |
Constructor that keeps an additional reference to the interface.