Logo Search packages:      
Sourcecode: fbdesk version File versions  Download package

FbTk::RefCount< Pointer > Class Template Reference

#include <RefCount.hh>

List of all members.

Detailed Description

template<typename Pointer>
class FbTk::RefCount< Pointer >

holds a pointer with reference counting, similar to std:auto_ptr

Definition at line 29 of file RefCount.hh.

Public Member Functions

Pointer * get () const
Pointer * operator* () const
Pointer * operator-> () const
RefCount< Pointer > & operator= (Pointer *p)
RefCount< Pointer > & operator= (const RefCount< Pointer > &copy)
 RefCount (const RefCount< Pointer > &copy)
 RefCount (RefCount< Pointer > &copy)
 RefCount (Pointer *p)
unsigned int usedBy () const

Private Member Functions

void decRefCount ()
 decrease referense count
void incRefCount ()
 increase referense count

Private Attributes

Pointer * m_data
 data holder
unsigned int * m_refcount
 holds reference counting

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index