Class RefCountedObject
Base class for reference counted objects, maintains reference counter inplace.
If some class is not inherited from RefCountedObject
, additional object will be required to hold counters.
Inherits from
-
Object
(base class)
Fields
Name | Type | Description |
---|---|---|
_refCount
|
int |
count of references to this object from Ref
|
Properties
Name | Type | Description |
---|---|---|
refCount
[get]
|
int |
returns current value of reference counter |
Methods
Name | Description |
---|---|
addRef
|
increments reference counter |
releaseRef
|
decrement reference counter, destroy object if no more references left |
Authors
Vadim Lopatin, coolreader.org@gmail.com
Copyright
Vadim Lopatin, 2014
License
Boost License 1.0