![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cRefPtr.h>
Public Member Functions | |
| cRefPtr () noexcept | |
| cRefPtr (const TYPE *p2) | |
| cRefPtr (const THIS_t &ref) | |
| cRefPtr (const TYPE *p2, TIMESYSD_t dwWaitMS) | |
| ~cRefPtr () | |
| bool | isValidPtr () const |
| bool | isCorruptPtr () const |
| void | put_Ptr (TYPE *p) |
| void | ReleasePtr () |
| int | get_RefCount () const |
| THIS_t & | operator= (const TYPE *p2) |
| THIS_t & | operator= (const THIS_t &ref) |
| template<class _TYPE_2 > | |
| operator cRefPtr< _TYPE_2 > () const | |
Public Member Functions inherited from Gray::cPtrFacade< cRefBase > | |
| cPtrFacade (cRefBase *p=nullptr) noexcept | |
| cPtrFacade (THIS_t &&ref) noexcept | |
| bool | isValidPtr () const noexcept |
| cRefBase ** | get_PPtr () |
| cRefBase * | get_Ptr () const noexcept |
| void | put_Ptr (cRefBase *p) noexcept |
| void | ReleasePtr () noexcept |
| void | AttachPtr (cRefBase *p) noexcept |
| cRefBase * | DetachPtr () noexcept |
| THIS_t & | operator= (cRefBase *p) noexcept |
| THIS_t & | operator= (THIS_t &&ref) noexcept |
| operator cRefBase * () const noexcept | |
| cRefBase & | get_Ref () const |
| cRefBase & | operator* () const |
| cRefBase * | operator-> () const |
| bool | operator! () const noexcept |
| Comparison ops. More... | |
| bool | operator!= (cRefBase *p2) const noexcept |
| bool | operator== (cRefBase *p2) const noexcept |
Protected Member Functions | |
| void | IncRefFirst () |
Additional Inherited Members | |
Protected Attributes inherited from Gray::cPtrFacade< cRefBase > | |
| cRefBase * | m_p |
| Pointer to some object of TYPE. More... | |
Template for a type specific Smart (reference counted) Pointer Smart pointer to an object. like "com_ptr_t" _com_ptr_t or cComPtr. https://msdn.microsoft.com/en-us/library/hh279674.aspx Just a ref to the object of some type. TYPE must be based on cRefBase similar to boost::shared_ptr<TYPE>
|
inlinenoexcept |
|
inline |
|
inline |
create my own copy constructor.
|
inline |
This is to fake out cThreadLockRef in single thread mode.
|
inline |
|
inline |
|
inlineprotected |
|
inline |
is this really pointing to what it is supposed to be pointing to. type check. Mostly just for _DEBUG usage.
|
inline |
Not nullptr?
|
inline |
explicit ref type conversion - to remove redundant casts will work only for properly related types
|
inline |
Copy assignment operator.
|
inline |
|
inline |
Attach the pointer and add a ref.
|
inline |
just set this to nullptr.