#include <SharedPtr.hpp>
Public Types | |
typedef T *sfSharedPtr::* | BoolType |
Public Member Functions | |
sfSharedPtr () | |
sfSharedPtr (T *Pointee) | |
sfSharedPtr (const sfSharedPtr &Copy) | |
~sfSharedPtr () | |
sfSharedPtr & | operator= (const sfSharedPtr &Other) |
sfSharedPtr & | operator= (T *Pointee) |
T * | operator-> () const |
T & | operator * () const |
operator BoolType () const | |
unsigned int | GetRefCount () const |
Definition at line 38 of file SharedPtr.hpp.
sfSharedPtr< T >::sfSharedPtr | ( | ) | [inline] |
Default constructor
Definition at line 30 of file SharedPtr.inl.
sfSharedPtr< T >::sfSharedPtr | ( | T * | Pointee | ) | [inline, explicit] |
Construct the instance with an initial pointee value
Pointee | : Initial pointee value |
Definition at line 42 of file SharedPtr.inl.
sfSharedPtr< T >::sfSharedPtr | ( | const sfSharedPtr< T > & | Copy | ) | [inline] |
sfSharedPtr< T >::~sfSharedPtr | ( | ) | [inline] |
Destructor
Definition at line 66 of file SharedPtr.inl.
sfSharedPtr< T > & sfSharedPtr< T >::operator= | ( | const sfSharedPtr< T > & | Other | ) | [inline] |
Assignment operator (assigns a new shared ptr)
Other | : Instance to assign |
Definition at line 82 of file SharedPtr.inl.
References sfSharedPtr< T >::myCount, and sfSharedPtr< T >::myPointee.
sfSharedPtr< T > & sfSharedPtr< T >::operator= | ( | T * | Pointee | ) | [inline] |
Assignment operator (assigns a new pointee)
Pointee | : Pointee to assign |
Definition at line 96 of file SharedPtr.inl.
References sfSharedPtr< T >::myCount, and sfSharedPtr< T >::myPointee.
T * sfSharedPtr< T >::operator-> | ( | ) | const [inline] |
T & sfSharedPtr< T >::operator * | ( | ) | const [inline] |
sfSharedPtr< T >::operator BoolType | ( | ) | const [inline] |
Automatic conversion to pointer type (to allow testing)
Definition at line 130 of file SharedPtr.inl.
unsigned int sfSharedPtr< T >::GetRefCount | ( | ) | const [inline] |
Get reference counter value
Definition at line 140 of file SharedPtr.inl.