You.i Engine
YiEnableSharedFromThis.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2017. All rights reserved.
2 #ifndef _YI_ENABLE_SHARED_FROM_THIS_H_
3 #define _YI_ENABLE_SHARED_FROM_THIS_H_
4 
5 #include "smartptr/YiWeakPtr.h"
6 
60 template<class YI_PTR_TYPE>
61 class CYIEnableSharedFromThis : public std::enable_shared_from_this<YI_PTR_TYPE>
62 {
63 protected:
64 
71 
78 
82 
84 };
85 
89 #include "smartptr/YiEnableSharedFromThis.inl"
90 
91 
92 #endif // _YI_ENABLE_SHARED_FROM_THIS_H_
The CYISharedPtr is a smart pointer that takes a shared ownership of a dynamically allocated object...
Definition: YiSharedPtr.h:118
CYISharedPtr< YI_PTR_TYPE > SharedFromThis()
Returns a CYISharedPtr<T> which shares ownership of *this.
CYIEnableSharedFromThis & operator=(const CYIEnableSharedFromThis &other)
CYIEnableSharedFromThis<T> allows an object currently managed by a CYISharedPtr to safely generation ...
Definition: YiEnableSharedFromThis.h:61