![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cNewPtr.h>
Public Member Functions | |
cNewPtr () noexcept | |
cNewPtr (TYPE *pObj) noexcept | |
~cNewPtr () | |
void | AllocArray (size_t nSize=1) noexcept |
void | AllocArray (size_t nSize, const TYPE *p) noexcept |
void | ReleasePtr () noexcept |
THIS_t & | operator= (TYPE *p2) noexcept |
THIS_t & | operator= (THIS_t &ref) noexcept |
TYPE & | operator* () const |
TYPE * | operator-> () const |
bool | operator!= (const TYPE *p2) const noexcept |
bool | operator== (const TYPE *p2) const noexcept |
![]() | |
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 Member Functions | |
void | AsignPtr (TYPE *p2) noexcept |
void | AsignRef (THIS_t &ref) noexcept |
void | FreeLast () noexcept |
Additional Inherited Members | |
![]() | |
TYPE * | m_p |
Pointer to some object of TYPE. More... | |
These are sort of dumb "smart pointers" but assume a single reference. A single reference to a dynamically allocated (heap) class not based on cRefBase. Free on destruct. Works like STL "auto_ptr<TYPE>" or boost::unique_ptr<>, std::unique_ptr<>
|
inlinenoexcept |
|
inlineexplicitnoexcept |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineprotectednoexcept |
|
inlineprotectednoexcept |
|
inlineprotectednoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |