|
tvm
|
A custom smart pointer for Object. More...
#include <object.h>
Public Member Functions | |
| ObjectPtr () | |
| default constructor More... | |
| ObjectPtr (std::nullptr_t) | |
| default constructor More... | |
| ObjectPtr (const ObjectPtr< T > &other) | |
| copy constructor More... | |
| template<typename U > | |
| ObjectPtr (const ObjectPtr< U > &other) | |
| copy constructor More... | |
| ObjectPtr (ObjectPtr< T > &&other) | |
| move constructor More... | |
| template<typename Y > | |
| ObjectPtr (ObjectPtr< Y > &&other) | |
| move constructor More... | |
| ~ObjectPtr () | |
| destructor More... | |
| void | swap (ObjectPtr< T > &other) |
| Swap this array with another Object. More... | |
| T * | get () const |
| T * | operator-> () const |
| T & | operator* () const |
| ObjectPtr< T > & | operator= (const ObjectPtr< T > &other) |
| copy assignment More... | |
| ObjectPtr< T > & | operator= (ObjectPtr< T > &&other) |
| move assignment More... | |
| operator bool () const | |
| nullptr check More... | |
| void | reset () |
| reset the content of ptr to be nullptr More... | |
| int | use_count () const |
| bool | unique () const |
| bool | operator== (const ObjectPtr< T > &other) const |
| bool | operator!= (const ObjectPtr< T > &other) const |
| bool | operator== (std::nullptr_t null) const |
| bool | operator!= (std::nullptr_t null) const |
Friends | |
| class | Object |
| class | ObjectRef |
| struct | ObjectPtrHash |
| template<typename > | |
| class | ObjectPtr |
| template<typename > | |
| class | ObjAllocatorBase |
| class | TVMPODValue_ |
| class | TVMArgsSetter |
| class | TVMRetValue |
| class | TVMArgValue |
| class | TVMMovableArgValue_ |
| template<typename RelayRefType , typename ObjType > | |
| RelayRefType | GetRef (const ObjType *ptr) |
| template<typename BaseType , typename ObjType > | |
| ObjectPtr< BaseType > | GetObjectPtr (ObjType *ptr) |
A custom smart pointer for Object.
| T | the content data type. |
|
inline |
default constructor
|
inline |
default constructor
|
inline |
copy constructor
| other | The value to be moved |
|
inline |
copy constructor
| other | The value to be moved |
|
inline |
move constructor
| other | The value to be moved |
|
inline |
move constructor
| other | The value to be moved |
|
inline |
destructor
|
inline |
|
inlineexplicit |
nullptr check
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
copy assignment
| other | The value to be assigned. |
|
inline |
move assignment
| other | The value to be assigned. |
|
inline |
|
inline |
|
inline |
reset the content of ptr to be nullptr
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
1.8.13