![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cPtrFacade.h>
Public Member Functions | |
| cPtrFacade (TYPE *p=nullptr) noexcept | |
| cPtrFacade (THIS_t &&ref) noexcept | |
| bool | isValidPtr () const noexcept |
| TYPE ** | get_PPtr () |
| TYPE * | get_Ptr () const noexcept |
| void | put_Ptr (TYPE *p) noexcept |
| void | ReleasePtr () noexcept |
| void | AttachPtr (TYPE *p) noexcept |
| TYPE * | DetachPtr () noexcept |
| THIS_t & | operator= (TYPE *p) noexcept |
| THIS_t & | operator= (THIS_t &&ref) noexcept |
| operator TYPE * () const noexcept | |
| TYPE & | get_Ref () const |
| TYPE & | operator* () const |
| TYPE * | operator-> () const |
| bool | operator! () const noexcept |
| Comparison ops. More... | |
| bool | operator!= (TYPE *p2) const noexcept |
| bool | operator== (TYPE *p2) const noexcept |
Protected Attributes | |
| TYPE * | m_p |
| Pointer to some object of TYPE. More... | |
a class that acts like (wraps) a pointer to TYPE. Not specific to TYPE=cRefBase. Base for: cExceptionHolder, cLockerT, cNewPtr, cRefPtr, cIUnkPtr, etc. TODO cPtrNotNull<> // a pointer that can never be nullptr. like gsl::not_null<T>
|
inlinenoexcept |
|
inlinenoexcept |
move constructor.
|
inlinenoexcept |
sets the pointer WITHOUT adding a ref (if overload applicable). like get_PPtr().
|
inlinenoexcept |
Do not decrement the reference count when this is destroyed. Pass the ref outside the smart pointer system. for use with COM interfaces. same as _WIN32 ATL cComPtr Detach()
|
inline |
assume this will be used to set the m_p value.
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
Not nullptr?
|
inlinenoexcept |
Accessor ops.
|
inlinenoexcept |
Comparison ops.
|
inlinenoexcept |
|
inline |
|
inline |
|
inlinenoexcept |
move assignment operator
|
inlinenoexcept |
assignment operator
|
inlinenoexcept |
|
inlinenoexcept |
override this to increment a ref count. similar to AttachPtr() but can add a ref.
|
inlinenoexcept |
just set this to nullptr. override this to decrement a ref count or free memory.
|
protected |
Pointer to some object of TYPE.