public |
Inheritance Graph
graph BT
Reference
click Reference "classUtil_1_1Reference"
Description
Smart-pointer for objects using reference counters (via base class ReferenceCounter ).
Public Types
typedef Reference < _T > | Reference_t |
Public Functions
Reference() | |
Reference(_T * _obj) | |
Reference(const Reference_t & other) | |
Reference( Reference_t && other) | |
~Reference() | |
Reference_t & | operator=(_T * other) |
Reference_t & | operator=(const WeakPointer < _T > & other) |
Reference_t & | operator=(const Reference_t & other) |
Reference_t & | operator=( Reference_t && other) |
void | swap( Reference_t & other) |
_T * | detach() |
_T * | detachAndDecrease() |
_T * | operator->() const |
_T * | get() const |
bool | isNull() const |
bool | isNotNull() const |
bool | operator==(const Reference_t & other) const |
bool | operator!=(const Reference_t & other) const |
bool | operator==(const _T * other) const |
bool | operator!=(const _T * other) const |
bool | operator<(const Reference_t & other) const |
operator bool() const |
Documentation
typedef
Util::Reference::Reference_t
public |
typedef Reference < _T > Reference_t |
Defined in Util/References.h:32
function
Util::Reference::Reference
public | inline |
Reference( | ) |
Defined in Util/References.h:33
function
Util::Reference::Reference
public | inline |
Reference( | _T * | _obj ) |
Defined in Util/References.h:34
function
Util::Reference::Reference
public | inline |
Reference( | const Reference_t & | other ) |
Defined in Util/References.h:35
function
Util::Reference::Reference
public | inline |
Reference( | Reference_t && | other ) |
Defined in Util/References.h:36
function
Util::Reference::~Reference
public | inline |
~Reference( | ) |
Defined in Util/References.h:37
function
Util::Reference::operator=
public | inline |
Reference_t & operator=( | _T * | other ) |
Defined in Util/References.h:39
function
Util::Reference::operator=
public | inline |
Reference_t & operator=( | const WeakPointer < _T > & | other ) |
Defined in Util/References.h:48
function
Util::Reference::operator=
public | inline |
Reference_t & operator=( | const Reference_t & | other ) |
Defined in Util/References.h:57
function
Util::Reference::operator=
public | inline |
Reference_t & operator=( | Reference_t && | other ) |
Defined in Util/References.h:66
function
Util::Reference::swap
public | inline |
void swap( | Reference_t & | other ) |
Defined in Util/References.h:71
function
Util::Reference::detach
public | inline |
_T * detach( | ) |
Detach the object from the Reference without decreasing the reference counter or deleting the object. Set the Reference to nullptr.
Defined in Util/References.h:81
function
Util::Reference::detachAndDecrease
public | inline |
_T * detachAndDecrease( | ) |
Detach the object from the Reference with decreasing the reference counter and setting the Reference to nullptr. The object is not deleted if the counter reaches 0.
Defined in Util/References.h:91
function
Util::Reference::operator->
public | const | inline |
_T * operator->( | ) const |
Defined in Util/References.h:97
function
Util::Reference::get
public | const | inline |
_T * get( | ) const |
Defined in Util/References.h:98
function
Util::Reference::isNull
public | const | inline |
bool isNull( | ) const |
Defined in Util/References.h:100
function
Util::Reference::isNotNull
public | const | inline |
bool isNotNull( | ) const |
Defined in Util/References.h:101
function
Util::Reference::operator==
public | const | inline |
bool operator==( | const Reference_t & | other ) const |
Defined in Util/References.h:103
function
Util::Reference::operator!=
public | const | inline |
bool operator!=( | const Reference_t & | other ) const |
Defined in Util/References.h:104
function
Util::Reference::operator==
public | const | inline |
bool operator==( | const _T * | other ) const |
Defined in Util/References.h:105
function
Util::Reference::operator!=
public | const | inline |
bool operator!=( | const _T * | other ) const |
Defined in Util/References.h:106
function
Util::Reference::operator<
public | const | inline |
bool operator<( | const Reference_t & | other ) const |
Defined in Util/References.h:107
function
Util::Reference::operator bool
public | const | inline | explicit |
operator bool( | ) const |
Defined in Util/References.h:108