14 #ifndef COPYONWRITEPOINTER_H
15 #define COPYONWRITEPOINTER_H
58 INLINE
bool is_null()
const;
61 INLINE
bool test_ref_count_integrity()
const;
62 INLINE
bool test_ref_count_nonzero()
const;
87 INLINE
void operator = (To *
object);
103 #define COWPT(type) CopyOnWritePointerTo< type >
This base class provides basic reference counting, but also can be used with a CopyOnWritePointer to ...
A template wrapper around the above class, mainly to handle the little typecasting niceties.
To * get_unsafe_pointer()
See CopyOnWritePointer::get_unsafe_pointer().
To * get_write_pointer()
See CopyOnWritePointer::get_write_pointer().
const To * get_read_pointer(Thread *current_thread=Thread::get_current_thread()) const
See CopyOnWritePointer::get_read_pointer().
This safely stores the primary, owned pointer to a CopyOnWriteObject.
This file defines the classes PointerTo and ConstPointerTo (and their abbreviations,...
A thread; that is, a lightweight process.
get_current_thread
Returns a pointer to the currently-executing Thread object.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.