|
Blender
V3.3
|
#include <BLI_user_counter.hh>
Public Member Functions | |
| UserCounter ()=default | |
| UserCounter (T *data) | |
| UserCounter (const UserCounter &other) | |
| UserCounter (UserCounter &&other) | |
| ~UserCounter () | |
| UserCounter & | operator= (const UserCounter &other) |
| UserCounter & | operator= (UserCounter &&other) |
| T * | operator-> () |
| const T * | operator-> () const |
| T & | operator* () |
| const T & | operator* () const |
| operator bool () const | |
| T * | get () |
| const T * | get () const |
| T * | release () |
| void | reset () |
| bool | has_value () const |
| uint64_t | hash () const |
Friends | |
| bool | operator== (const UserCounter &a, const UserCounter &b) |
| std::ostream & | operator<< (std::ostream &stream, const UserCounter &value) |
A simple automatic reference counter. It is similar to std::shared_ptr, but expects that the reference count is inside the object.
Definition at line 17 of file BLI_user_counter.hh.
|
default |
|
inline |
Definition at line 24 of file BLI_user_counter.hh.
References data_.
|
inline |
Definition at line 28 of file BLI_user_counter.hh.
References data_.
|
inline |
Definition at line 33 of file BLI_user_counter.hh.
References data_.
|
inline |
Definition at line 38 of file BLI_user_counter.hh.
References data_.
|
inline |
Definition at line 96 of file BLI_user_counter.hh.
References data_.
|
inline |
Definition at line 101 of file BLI_user_counter.hh.
References data_.
|
inline |
Definition at line 119 of file BLI_user_counter.hh.
References data_.
|
inline |
Definition at line 124 of file BLI_user_counter.hh.
References data_, and blender::get_default_hash().
|
inline |
Definition at line 91 of file BLI_user_counter.hh.
References data_.
|
inline |
Definition at line 79 of file BLI_user_counter.hh.
References BLI_assert, and data_.
|
inline |
Definition at line 85 of file BLI_user_counter.hh.
References BLI_assert, and data_.
|
inline |
Definition at line 67 of file BLI_user_counter.hh.
References BLI_assert, and data_.
|
inline |
Definition at line 73 of file BLI_user_counter.hh.
References BLI_assert, and data_.
|
inline |
Definition at line 43 of file BLI_user_counter.hh.
References data_.
|
inline |
Definition at line 55 of file BLI_user_counter.hh.
References data_.
|
inline |
Definition at line 106 of file BLI_user_counter.hh.
|
inline |
Definition at line 113 of file BLI_user_counter.hh.
References data_.
|
friend |
Definition at line 134 of file BLI_user_counter.hh.
|
friend |
Definition at line 129 of file BLI_user_counter.hh.