Panda3D
|
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=NULL) | |
CopyOnWritePointerTo (const CopyOnWritePointerTo< T > ©) | |
void | clear () |
Sets the pointer to NULL. | |
const To * | get_read_pointer () const |
See CopyOnWritePointer::get_read_pointer(). | |
To * | get_unsafe_pointer () |
See CopyOnWritePointer::get_unsafe_pointer(). | |
To * | get_write_pointer () |
See CopyOnWritePointer::get_write_pointer(). | |
bool | is_null () const |
Returns true if the CopyOnWritePointer contains a NULL pointer, false otherwise. | |
bool | operator!= (const CopyOnWritePointer &other) const |
bool | operator< (const CopyOnWritePointer &other) const |
void | operator= (To *object) |
void | operator= (const CopyOnWritePointerTo< T > ©) |
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. | |
bool | test_ref_count_nonzero () const |
Does some easy checks to make sure that the reference count isn't zero, or completely bogus. |
A template wrapper around the above class, mainly to handle the little typecasting niceties.
Definition at line 74 of file copyOnWritePointer.h.
void CopyOnWritePointer::clear | ( | ) | [inline, inherited] |
Sets the pointer to NULL.
Definition at line 190 of file copyOnWritePointer.I.
const CopyOnWritePointerTo< T >::To * CopyOnWritePointerTo< T >::get_read_pointer | ( | ) | const [inline] |
See CopyOnWritePointer::get_read_pointer().
Reimplemented from CopyOnWritePointer.
Definition at line 295 of file copyOnWritePointer.I.
References CopyOnWritePointer::get_read_pointer().
CopyOnWritePointerTo< T >::To * CopyOnWritePointerTo< T >::get_unsafe_pointer | ( | ) | [inline] |
See CopyOnWritePointer::get_unsafe_pointer().
Reimplemented from CopyOnWritePointer.
Definition at line 335 of file copyOnWritePointer.I.
References CopyOnWritePointer::get_unsafe_pointer().
CopyOnWritePointerTo< T >::To * CopyOnWritePointerTo< T >::get_write_pointer | ( | ) | [inline] |
See CopyOnWritePointer::get_write_pointer().
Reimplemented from CopyOnWritePointer.
Definition at line 321 of file copyOnWritePointer.I.
References CopyOnWritePointer::get_write_pointer().
bool CopyOnWritePointer::is_null | ( | ) | const [inline, inherited] |
Returns true if the CopyOnWritePointer contains a NULL pointer, false otherwise.
Definition at line 180 of file copyOnWritePointer.I.
bool CopyOnWritePointer::test_ref_count_integrity | ( | ) | const [inline, inherited] |
Does some easy checks to make sure that the reference count isn't completely bogus.
Returns true if ok, false otherwise.
Definition at line 205 of file copyOnWritePointer.I.
References CachedTypedWritableReferenceCount::test_ref_count_integrity().
bool CopyOnWritePointer::test_ref_count_nonzero | ( | ) | const [inline, inherited] |
Does some easy checks to make sure that the reference count isn't zero, or completely bogus.
Returns true if ok, false otherwise.
Definition at line 218 of file copyOnWritePointer.I.
References ReferenceCount::test_ref_count_nonzero().