File SharedPtr.hpp¶
-
template<typename T>
class SharedCounter¶ Private Functions
-
inline ~SharedCounter()¶
-
inline void addSharedRef()¶
-
inline void addWeakRef()¶
-
inline bool releaseSharedRef()¶
-
inline bool releaseWeakRef()¶
Friends
- friend class SharedPtr
- friend class WeakPtr
-
inline ~SharedCounter()¶
-
template<typename T>
class SharedPtr¶ Public Functions
-
inline SharedPtr()¶
-
template<typename TDerived, typename std::enable_if<std::is_base_of<T, TDerived>::value>::type* = nullptr>
inline SharedPtr(const SharedPtr<TDerived> &sp)¶
-
SharedPtr(const SharedCounter<T> &sp)¶
-
inline ~SharedPtr()¶
-
bool isUnique() const¶
-
int useCount() const¶
-
int weakCount() const¶
-
inline void reset()¶
Public Static Functions
Private Members
-
SharedCounter<T> *pc¶
Friends
- friend class WeakPtr
-
inline SharedPtr()¶
-
template<typename T>
class WeakPtr¶ Public Functions
-
inline WeakPtr()¶
-
template<typename TDerived, typename std::enable_if<std::is_base_of<T, TDerived>::value>::type* = nullptr>
inline WeakPtr(const WeakPtr<TDerived> &sp)¶
-
inline ~WeakPtr()¶
-
int useCount() const¶
-
int weakCount() const¶
-
inline bool isNull() const¶
-
inline void reset()¶
Private Members
-
SharedCounter<T> *pc¶
Friends
- friend class SharedPtr
-
inline WeakPtr()¶