sttcl
v0.9c
STTCL C++ template state machine framework
|
#include <RefCountPtr.h>
Public Member Functions | |
RefCountPtr () | |
RefCountPtr (T *argPointee, typename sttcl::internal::RefCountPtrBase< MutexType >::ReleaseFunc argReleaseFunc=RefCountPtr< T, MutexType >::release) | |
template<typename U > | |
RefCountPtr (U *argPointee, typename sttcl::internal::RefCountPtrBase< MutexType >::ReleaseFunc argReleaseFunc=RefCountPtr< T, MutexType >::release) | |
RefCountPtr (const RefCountPtr< T, MutexType > &rhs) | |
template<typename U > | |
RefCountPtr (const RefCountPtr< U, MutexType > &rhs) | |
~RefCountPtr () | |
RefCountPtr & | operator= (const RefCountPtr< T, MutexType > &rhs) |
template<typename U > | |
RefCountPtr & | operator= (const RefCountPtr< U, MutexType > &rhs) |
T * | get () const |
operator T * () const | |
T * | operator-> () |
T & | operator* () |
Public Member Functions inherited from sttcl::internal::RefCountPtrBase< MutexType > | |
~RefCountPtrBase () |
Additional Inherited Members | |
Public Types inherited from sttcl::internal::RefCountPtrBase< MutexType > | |
typedef void(* | ReleaseFunc )(void *ptr) |
Protected Member Functions inherited from sttcl::internal::RefCountPtrBase< MutexType > | |
RefCountPtrBase () | |
RefCountPtrBase (void *argPointee, ReleaseFunc argReleaseFunc) | |
RefCountPtrBase (const RefCountPtrBase &rhs) | |
RefCountPtrBase & | operator= (const RefCountPtrBase< MutexType > &rhs) |
void | incrementRefCount () |
void | decrementRefCount () |
Protected Attributes inherited from sttcl::internal::RefCountPtrBase< MutexType > | |
PtrRef * | ptrRef |
Represents a smart pointer class for STTCL dispatched event arguments. The implementation provides a simple reference counting smart pointer. There's also a specialization for T as void, but it will never be really used with void pointees, since void event argument types won't be instantiated in the event dispatch interfaces.
T | The event arguments type. |
MutexType | The mutex type used to guarantee thread safety of the RefCountPtr instances. |
|
inline |
Default constructor for class RefCountPtr.
|
inline |
Constructor for class RefCountPtr.
argPointee | The pointee to manage. |
argReleaseFunc | An optional alternate release function for the pointee. |
|
inline |
Constructor for class RefCountPtr.
argPointee | The pointee to manage. |
argReleaseFunc | An optional alternate release function for the pointee. |
|
inline |
Copy constructor for class RefCountPtr. This operation will increment the reference count of the copied pointee.
rhs | The other instance to copy from. |
|
inline |
Copy constructor for class RefCountPtr. This operation will increment the reference count of the copied pointee.
rhs | The other instance to copy from. |
|
inline |
Destructor for class RefCountPtr. This operation will decrement the reference count of the managed pointee.
|
inline |
Gets the pointee.
|
inline |
Gets the pointee.
|
inline |
Star dereference operator.
|
inline |
Arrow derefernce operator.
|
inline |
Assignment operator. This operation will increment the reference count of the copied pointee.
rhs | The other instance to copy from. |
|
inline |
Assignment operator. This operation will increment the reference count of the copied pointee.
rhs | The other instance to copy from. |