Torc  0.1
Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
TorcReferenceCounter Class Reference

A reference counting implementation. More...

#include <torcreferencecounted.h>

Inheritance diagram for TorcReferenceCounter:
[legend]

Public Member Functions

 TorcReferenceCounter (void)
 
virtual ~TorcReferenceCounter (void)=default
 
void UpRef (void)
 
virtual bool DownRef (void)
 
bool IsShared (void)
 

Static Public Member Functions

static void EventLoopEnding (bool Ending)
 

Protected Attributes

QAtomicInt m_refCount
 

Static Protected Attributes

static bool m_eventLoopEnding = false
 

Detailed Description

A reference counting implementation.

Definition at line 7 of file torcreferencecounted.h.

Constructor & Destructor Documentation

TorcReferenceCounter::TorcReferenceCounter ( void  )

Definition at line 40 of file torcreferencecounted.cpp.

virtual TorcReferenceCounter::~TorcReferenceCounter ( void  )
virtualdefault

Member Function Documentation

bool TorcReferenceCounter::DownRef ( void  )
virtual

Definition at line 51 of file torcreferencecounted.cpp.

void TorcReferenceCounter::EventLoopEnding ( bool  Ending)
static

Definition at line 35 of file torcreferencecounted.cpp.

bool TorcReferenceCounter::IsShared ( void  )

Definition at line 72 of file torcreferencecounted.cpp.

void TorcReferenceCounter::UpRef ( void  )

Definition at line 46 of file torcreferencecounted.cpp.

Member Data Documentation

bool TorcReferenceCounter::m_eventLoopEnding = false
staticprotected

Definition at line 21 of file torcreferencecounted.h.

QAtomicInt TorcReferenceCounter::m_refCount
protected

Definition at line 20 of file torcreferencecounted.h.


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