CppParser
|
Helps working with raw or unique_ptr of CppObj in a uniform way. More...
#include <cppeasyptr.h>
Public Member Functions | |
CppEasyPtr (CppObjT *rawPtr) | |
CppEasyPtr (const std::unique_ptr< CppObjT > &ptr) | |
template<typename = std::enable_if<!std::is_const<CppObjT>::value>> | |
CppEasyPtr (CppObj *rawPtr) | |
template<typename = std::enable_if<std::is_const<CppObjT>::value>> | |
CppEasyPtr (const CppObj *rawPtr) | |
template<typename _UCppObj > | |
CppEasyPtr (const std::unique_ptr< _UCppObj > &ptr) | |
CppObjT * | operator-> () const |
operator bool () const | |
operator CppObjT * () const | |
operator CppObj * () const | |
operator const CppObj * () const | |
CppObjT & | operator* () const |
template<typename _UCppObj > | |
operator _UCppObj * () const | |
CppObjT * | get () const |
Private Attributes | |
CppObjT * | ptr_ |
Helps working with raw or unique_ptr of CppObj in a uniform way.
It is design to not handle the ownership of the object. Just to make it easy to work with raw pointer or unique_ptr in the same way.
CppObjT | CppObj or any of it's descendent type. |
Definition at line 43 of file cppeasyptr.h.
|
inline |
Definition at line 46 of file cppeasyptr.h.
|
inline |
Definition at line 50 of file cppeasyptr.h.
|
inline |
|
inline |
|
inline |
Definition at line 72 of file cppeasyptr.h.
|
inline |
Definition at line 115 of file cppeasyptr.h.
|
inline |
Definition at line 110 of file cppeasyptr.h.
|
inline |
Definition at line 84 of file cppeasyptr.h.
|
inline |
Definition at line 99 of file cppeasyptr.h.
|
inline |
Definition at line 94 of file cppeasyptr.h.
|
inline |
Definition at line 89 of file cppeasyptr.h.
|
inline |
Definition at line 104 of file cppeasyptr.h.
|
inline |
Definition at line 79 of file cppeasyptr.h.
|
private |
Definition at line 121 of file cppeasyptr.h.