Panda3D
Public Member Functions | Protected Attributes
PointerToVoid Class Reference

This is the non-template part of the base class for PointerTo and ConstPointerTo. More...

#include "pointerToVoid.h"

Inheritance diagram for PointerToVoid:
MemoryBase NodePointerToBase< T > PointerToBase< T > PointerToBase< ReferenceCountedVector< Element > > ThreadSafePointerToBase< T > WeakPointerToVoid NodeConstPointerTo< T > NodePointerTo< T > ConstPointerTo< T > PointerTo< T > PointerToArrayBase< Element > ThreadSafeConstPointerTo< T > ThreadSafePointerTo< T > WeakPointerToBase< T >

List of all members.

Public Member Functions

size_t get_hash () const
bool is_null () const
 Returns true if the PointerTo is a NULL pointer, false otherwise.
bool operator!= (const PointerToVoid &other) const
bool operator< (const void *other) const
bool operator< (const PointerToVoid &other) const
bool operator== (const PointerToVoid &other) const

Protected Attributes

AtomicAdjust::Pointer _void_ptr

Detailed Description

This is the non-template part of the base class for PointerTo and ConstPointerTo.

It is necessary so we can keep a pointer to a non-template class within the ReferenceCount object, to implement weak reference pointers--we need to have something to clean up when the ReferenceCount object destructs.

This is the base class for PointerToBase<T>.

Definition at line 34 of file pointerToVoid.h.


Member Function Documentation

bool PointerToVoid::is_null ( ) const [inline]

Returns true if the PointerTo is a NULL pointer, false otherwise.

(Direct comparison to a NULL pointer also works.)

Reimplemented in PointerTo< T >, WeakConstPointerTo< T >, and ThreadSafePointerTo< T >.

Definition at line 54 of file pointerToVoid.I.

Referenced by TexturePeeker::is_valid().


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