.TH "zipios::ReferenceCount< Type >" 3 "Tue May 9 2017" "Zipios++" \" -*- nroff -*- .ad l .nh .SH NAME zipios::ReferenceCount< Type > \- \fBReferenceCount\fP is useful to ensure proper handling of the reference count for (objects of) classes handled through a \fBSimpleSmartPointer\fP\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBReferenceCount\fP ()" .br .RI "Constructor intializes count to zero\&. " .ti -1c .RI "\fBReferenceCount\fP (const \fBReferenceCount\fP &src)" .br .RI "Copy-constructor intializes count to zero\&. " .ti -1c .RI "const \fBReferenceCount\fP & \fBoperator=\fP (const \fBReferenceCount\fP &src)" .br .RI "The assignment operator doesn't copy the reference count, it leaves it unchanged\&. " .in -1c .SS "Friends" .in +1c .ti -1c .RI "class \fBSimpleSmartPointer< Type >\fP" .br .RI "\fBSimpleSmartPointer\fP needs to be a friend to invoke the private ref() and unref() methods\&. " .ti -1c .RI "class \fBSimpleSmartPointer< const Type >\fP" .br .ti -1c .RI "class \fBFileEntry\fP" .br .RI "Type also needs to be a friend to invoke the private ref() and unref() methods, in case Type doesn't want to inherit \fBReferenceCount\fP and thus needs to invoke ref() and unref() through forwarding member functions\&. " .ti -1c .RI "class \fBBogus\fP" .br .in -1c .SH "Detailed Description" .PP .SS "template .br class zipios::ReferenceCount< Type >" \fBReferenceCount\fP is useful to ensure proper handling of the reference count for (objects of) classes handled through a \fBSimpleSmartPointer\fP\&. Subclassing \fBReferenceCount\fP is all a class needs to become ready for being handled by \fBSimpleSmartPointer\fP\&. Another way is to add a \fBReferenceCount\fP member variable to a class and write two methods 'void ref() const' and 'unsigned int unref() const' that invoke the same methods in the \fBReferenceCount\fP variable\&. .PP Definition at line 99 of file simplesmartptr\&.h\&. .SH "Constructor & Destructor Documentation" .PP .SS "template \fBzipios::ReferenceCount\fP< Type >::\fBReferenceCount\fP ()\fC [inline]\fP" .PP Constructor intializes count to zero\&. .PP Definition at line 122 of file simplesmartptr\&.h\&. .SS "template \fBzipios::ReferenceCount\fP< Type >::\fBReferenceCount\fP (const \fBReferenceCount\fP< Type > & src)\fC [inline]\fP" .PP Copy-constructor intializes count to zero\&. It doesn't copy it from src\&. .PP Definition at line 126 of file simplesmartptr\&.h\&. .SH "Member Function Documentation" .PP .SS "template const \fBReferenceCount\fP& \fBzipios::ReferenceCount\fP< Type >::operator= (const \fBReferenceCount\fP< Type > & src)\fC [inline]\fP" .PP The assignment operator doesn't copy the reference count, it leaves it unchanged\&. .PP Definition at line 130 of file simplesmartptr\&.h\&. .SH "Friends And Related Function Documentation" .PP .SS "template friend class \fBFileEntry\fP\fC [friend]\fP" .PP Type also needs to be a friend to invoke the private ref() and unref() methods, in case Type doesn't want to inherit \fBReferenceCount\fP and thus needs to invoke ref() and unref() through forwarding member functions\&. .PP Definition at line 117 of file simplesmartptr\&.h\&. .SS "template friend class \fBSimpleSmartPointer\fP< Type >\fC [friend]\fP" .PP \fBSimpleSmartPointer\fP needs to be a friend to invoke the private ref() and unref() methods\&. .PP Definition at line 102 of file simplesmartptr\&.h\&. .SH "Author" .PP Generated automatically by Doxygen for Zipios++ from the source code\&.