A template wrapper around the above class, mainly to handle the little typecasting niceties. More...
#include "copyOnWritePointer.h"
Public Types | |
typedef T | To |
Public Member Functions | |
CopyOnWritePointerTo (To *object=nullptr) | |
CopyOnWritePointerTo (const CopyOnWritePointerTo< T > ©) | |
CopyOnWritePointerTo (CopyOnWritePointerTo &&from) noexcept | |
CopyOnWritePointerTo (PointerTo< T > &&from) noexcept | |
const To * | get_read_pointer (Thread *current_thread=Thread::get_current_thread()) const |
See CopyOnWritePointer::get_read_pointer(). More... | |
To * | get_unsafe_pointer () |
See CopyOnWritePointer::get_unsafe_pointer(). More... | |
To * | get_write_pointer () |
See CopyOnWritePointer::get_write_pointer(). More... | |
void | operator= (const CopyOnWritePointerTo< T > ©) |
void | operator= (To *object) |
void | operator= (CopyOnWritePointerTo &&from) noexcept |
void | operator= (PointerTo< T > &&from) noexcept |
Public Member Functions inherited from CopyOnWritePointer | |
CopyOnWritePointer (CopyOnWriteObject *object=nullptr) | |
CopyOnWritePointer (const CopyOnWritePointer ©) | |
CopyOnWritePointer (CopyOnWritePointer &&from) noexcept | |
CopyOnWritePointer (PointerTo< CopyOnWriteObject > &&from) noexcept | |
void | clear () |
Sets the pointer to NULL. More... | |
const CopyOnWriteObject * | get_read_pointer (Thread *current_thread) const |
Returns a pointer locked for read. More... | |
CopyOnWriteObject * | get_unsafe_pointer () |
Returns an unlocked pointer that you can write to. More... | |
CopyOnWriteObject * | get_write_pointer () |
Returns a pointer locked for write. More... | |
bool | is_null () const |
Returns true if the CopyOnWritePointer contains a NULL pointer, false otherwise. More... | |
bool | operator != (const CopyOnWritePointer &other) const |
bool | operator< (const CopyOnWritePointer &other) const |
void | operator= (const CopyOnWritePointer ©) |
void | operator= (CopyOnWritePointer &&from) noexcept |
void | operator= (PointerTo< CopyOnWriteObject > &&from) noexcept |
void | operator= (CopyOnWriteObject *object) |
bool | operator== (const CopyOnWritePointer &other) const |
bool | test_ref_count_integrity () const |
Does some easy checks to make sure that the reference count isn't completely bogus. More... | |
bool | test_ref_count_nonzero () const |
Does some easy checks to make sure that the reference count isn't zero, or completely bogus. More... | |
A template wrapper around the above class, mainly to handle the little typecasting niceties.
Definition at line 74 of file copyOnWritePointer.h.
|
inline |
See CopyOnWritePointer::get_read_pointer().
Definition at line 376 of file copyOnWritePointer.I.
References CopyOnWritePointer::get_read_pointer().
|
inline |
See CopyOnWritePointer::get_unsafe_pointer().
Definition at line 416 of file copyOnWritePointer.I.
References CopyOnWritePointer::get_unsafe_pointer().
|
inline |
See CopyOnWritePointer::get_write_pointer().
Definition at line 404 of file copyOnWritePointer.I.
References CopyOnWritePointer::get_write_pointer().