OpenShot Library | OpenShotAudio
0.2.2
|
Adds reference-counting to an object. More...
#include <juce_ReferenceCountedObject.h>
Public Member Functions | |
void | incReferenceCount () noexcept |
Increments the object's reference count. More... | |
void | decReferenceCount () noexcept |
Decreases the object's reference count. More... | |
bool | decReferenceCountWithoutDeleting () noexcept |
Decreases the object's reference count. More... | |
int | getReferenceCount () const noexcept |
Returns the object's current reference count. More... | |
Protected Member Functions | |
SingleThreadedReferenceCountedObject ()=default | |
Creates the reference-counted object (with an initial ref count of zero). More... | |
SingleThreadedReferenceCountedObject (const SingleThreadedReferenceCountedObject &) | |
Copying from another object does not affect this one's reference-count. More... | |
SingleThreadedReferenceCountedObject (SingleThreadedReferenceCountedObject &&) | |
Copying from another object does not affect this one's reference-count. More... | |
SingleThreadedReferenceCountedObject & | operator= (const SingleThreadedReferenceCountedObject &) |
Copying from another object does not affect this one's reference-count. More... | |
SingleThreadedReferenceCountedObject & | operator= (SingleThreadedReferenceCountedObject &&) |
Copying from another object does not affect this one's reference-count. More... | |
virtual | ~SingleThreadedReferenceCountedObject () |
Destructor. More... | |
Friends | |
struct | ContainerDeletePolicy< ReferenceCountedObject > |
Adds reference-counting to an object.
This is effectively a version of the ReferenceCountedObject class, but which uses a non-atomic counter, and so is not thread-safe (but which will be more efficient). For more details on how to use it, see the ReferenceCountedObject class notes.
Definition at line 157 of file juce_ReferenceCountedObject.h.
|
protecteddefault |
Creates the reference-counted object (with an initial ref count of zero).
|
inlineprotected |
Copying from another object does not affect this one's reference-count.
Definition at line 202 of file juce_ReferenceCountedObject.h.
|
inlineprotected |
Copying from another object does not affect this one's reference-count.
Definition at line 204 of file juce_ReferenceCountedObject.h.
|
inlineprotectedvirtual |
Destructor.
Definition at line 211 of file juce_ReferenceCountedObject.h.
|
inlinenoexcept |
Increments the object's reference count.
This is done automatically by the smart pointer, but is public just in case it's needed for nefarious purposes.
Definition at line 166 of file juce_ReferenceCountedObject.h.
|
inlinenoexcept |
Decreases the object's reference count.
If the count gets to zero, the object will be deleted.
Definition at line 174 of file juce_ReferenceCountedObject.h.
|
inlinenoexcept |
Decreases the object's reference count.
If the count gets to zero, the object will not be deleted, but this method will return true, allowing the caller to take care of deletion.
Definition at line 186 of file juce_ReferenceCountedObject.h.
|
inlinenoexcept |
Returns the object's current reference count.
Definition at line 193 of file juce_ReferenceCountedObject.h.
|
inlineprotected |
Copying from another object does not affect this one's reference-count.
Definition at line 206 of file juce_ReferenceCountedObject.h.
|
inlineprotected |
Copying from another object does not affect this one's reference-count.
Definition at line 208 of file juce_ReferenceCountedObject.h.