|
Omnidome
Fulldome Mapping Software Toolkit
|
A pointer template which is free'd together with its context Holds an internal object which is responsible for freeing the held object when OpenGL context is free'd. More...
#include <ContextBoundPtr.h>

Public Member Functions | |
| ContextBoundPtr () | |
| template<typename PTR > | |
| ContextBoundPtr (PTR *_p, QOpenGLContext *_context=QOpenGLContext::globalShareContext()) | |
| ~ContextBoundPtr () | |
| ContextBoundPtr (const ContextBoundPtr &that)=delete | |
| Delete copy constructor. More... | |
| ContextBoundPtr & | operator= (const ContextBoundPtr &)=delete |
| Delete copy assignment operator. More... | |
| void | reset () |
| Delete held object and internal state. More... | |
| template<typename PTR > | |
| T * | reset (PTR *_p, QOpenGLContext *_context=QOpenGLContext::globalShareContext()) |
| Reset and and assign neew pointer. More... | |
| T * | get () const |
| operator bool () const | |
| Cast to bool operator. Return true if pointer is not null. More... | |
| std::add_lvalue_reference< T > ::type | operator* () const |
| Return reference. More... | |
| T * | operator-> () const |
| QOpenGLContext * | context () const |
| Return pointer to associated context. More... | |
Private Attributes | |
| detail::ContextBoundPtrInternal < T > * | internal_ = nullptr |
A pointer template which is free'd together with its context Holds an internal object which is responsible for freeing the held object when OpenGL context is free'd.
|
inline |
|
inline |
|
inline |
|
delete |
Delete copy constructor.
|
inline |
Return pointer to associated context.
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
delete |
Delete copy assignment operator.
|
inline |
Delete held object and internal state.
|
inline |
Reset and and assign neew pointer.
Reset and make new internal object
No initialization without context!
|
private |
1.8.6