OSVR-Core
Public Types | Public Member Functions | List of all members
osvr::client::InternalInterfaceOwner Class Reference

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_typereference
 
typedef contained_typepointer
 

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
 
InternalInterfaceOwneroperator= (InternalInterfaceOwner const &)=delete
 non-assignable
 
 InternalInterfaceOwner (InternalInterfaceOwner &&other)
 move constructible
 
InternalInterfaceOwneroperator= (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
 

Detailed Description

Class that should be used for all internally-used client interface objects as it handles ownership with respect to the client context properly.

Constructor & Destructor Documentation

§ InternalInterfaceOwner()

osvr::client::InternalInterfaceOwner::InternalInterfaceOwner ( common::ClientContext ctx,
common::ClientInterfacePtr const &  iface 
)
inline

Constructor that keeps an additional reference to the interface.


The documentation for this class was generated from the following file: