|
Blender
V2.93
|
#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-> () |
| T & | operator* () |
| 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 31 of file BLI_user_counter.hh.
|
default |
|
inline |
Definition at line 38 of file BLI_user_counter.hh.
References data_.
|
inline |
Definition at line 42 of file BLI_user_counter.hh.
References data_.
|
inline |
Definition at line 47 of file BLI_user_counter.hh.
References data_.
|
inline |
Definition at line 52 of file BLI_user_counter.hh.
References data_.
|
inline |
Definition at line 98 of file BLI_user_counter.hh.
References data_.
|
inline |
Definition at line 103 of file BLI_user_counter.hh.
References data_.
|
inline |
Definition at line 121 of file BLI_user_counter.hh.
References data_.
|
inline |
Definition at line 126 of file BLI_user_counter.hh.
References data_, and blender::get_default_hash().
|
inline |
Definition at line 93 of file BLI_user_counter.hh.
References data_.
|
inline |
Definition at line 87 of file BLI_user_counter.hh.
References BLI_assert, and data_.
|
inline |
Definition at line 81 of file BLI_user_counter.hh.
References BLI_assert, and data_.
|
inline |
Definition at line 57 of file BLI_user_counter.hh.
References data_.
|
inline |
Definition at line 69 of file BLI_user_counter.hh.
References data_.
|
inline |
Definition at line 108 of file BLI_user_counter.hh.
|
inline |
Definition at line 115 of file BLI_user_counter.hh.
References data_.
|
friend |
Definition at line 136 of file BLI_user_counter.hh.
|
friend |
Definition at line 131 of file BLI_user_counter.hh.