Header.
More...
Go to the source code of this file.
|
template<typename T = ClientContext> |
using | osvr::common::ClientContextUniquePtr = unique_ptr< T, ClientContextDeleter > |
| Template alias for a ClientContext unique_ptr with the correct deleter class.
|
|
using | osvr::common::ClientContextSharedPtr = shared_ptr< ClientContext > |
|
|
void | osvr::common::deleteContext (ClientContext *ctx) |
| Use the stored deleter to appropriately delete the client context.
|
|
template<typename T , typename... Args> |
T * | osvr::common::makeContext (Args...args) |
| Create a subclass object of ClientContext, setting the deleter appropriately by passing it as the last parameter. Compare to std::make_shared.
|
|
template<typename T > |
ClientContextSharedPtr | osvr::common::wrapSharedContext (T *context) |
| Wrap a client context pointer in a shared pointer with the correct custom deleter.
|
|
Header.
- Date
- 2014
- Author
- Sensics, Inc. http://sensics.com/osvr
Definition in file ClientContext.h.