Panda3D
Public Types | Public Member Functions

CopyOnWritePointerTo< T > Class Template Reference

A template wrapper around the above class, mainly to handle the little typecasting niceties. More...

#include "copyOnWritePointer.h"

Inheritance diagram for CopyOnWritePointerTo< T >:
CopyOnWritePointer

List of all members.

Public Types

typedef T To

Public Member Functions

 CopyOnWritePointerTo (To *object=NULL)
 CopyOnWritePointerTo (const CopyOnWritePointerTo< T > &copy)
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 > &copy)
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.

Detailed Description

template<class T>
class CopyOnWritePointerTo< T >

A template wrapper around the above class, mainly to handle the little typecasting niceties.

Definition at line 74 of file copyOnWritePointer.h.


Member Function Documentation

void CopyOnWritePointer::clear ( ) [inline, inherited]

Sets the pointer to NULL.

Definition at line 190 of file copyOnWritePointer.I.

template<class T >
const CopyOnWritePointerTo< T >::To * CopyOnWritePointerTo< T >::get_read_pointer ( ) const [inline]
template<class T >
CopyOnWritePointerTo< T >::To * CopyOnWritePointerTo< T >::get_unsafe_pointer ( ) [inline]
template<class T >
CopyOnWritePointerTo< T >::To * CopyOnWritePointerTo< T >::get_write_pointer ( ) [inline]
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().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations