mxnet
|
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 assignmemt More... | |
ObjectPtr< T > & | operator= (ObjectPtr< T > &&other) |
move assignmemt 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 | ObjectHash |
template<typename > | |
class | ObjectPtr |
we always used ObjectPtr for a reference pointer to the node, so this alias can be changed in case. More... | |
template<typename > | |
class | ObjAllocatorBase |
class | MXNetPODValue_ |
class | MXNetArgsSetter |
class | MXNetRetValue |
class | MXNetArgValue |
template<typename RefType , typename ObjType > | |
RefType | 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 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
copy assignmemt
other | The value to be assigned. |
|
inline |
move assignmemt
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 |