Panda3D
Public Types | Public Member Functions | List of all members
ThreadSafePointerToBase< T > Class Template Reference

This is the base class for ThreadSafePointerTo and ThreadSafeConstPointerTo. More...

#include "threadSafePointerToBase.h"

Inheritance diagram for ThreadSafePointerToBase< T >:
PointerToVoid MemoryBase ThreadSafeConstPointerTo< T > ThreadSafePointerTo< T >

Public Types

typedef T To
 

Public Member Functions

void clear ()
 A convenient way to set the ThreadSafePointerTo object to NULL. More...
 
void output (ostream &out) const
 A handy function to output ThreadSafePointerTo's as a hex pointer followed by a reference count. More...
 
- Public Member Functions inherited from PointerToVoid
size_t get_hash () const
 
bool is_null () const
 Returns true if the PointerTo is a NULL pointer, false otherwise. More...
 
bool operator!= (const PointerToVoid &other) const
 
bool operator< (const void *other) const
 
bool operator< (const PointerToVoid &other) const
 
bool operator== (const PointerToVoid &other) const
 
void swap (PointerToVoid &other) NOEXCEPT
 Swaps the contents of this PointerTo with the other, without touching the reference counts. More...
 

Detailed Description

template<class T>
class ThreadSafePointerToBase< T >

This is the base class for ThreadSafePointerTo and ThreadSafeConstPointerTo.

Don't try to use it directly; use either derived class instead.

Definition at line 33 of file threadSafePointerToBase.h.

Member Function Documentation

◆ clear()

template<class T >
void ThreadSafePointerToBase< T >::clear ( )
inline

A convenient way to set the ThreadSafePointerTo object to NULL.

(Assignment to a NULL pointer also works, of course.)

Definition at line 136 of file threadSafePointerToBase.I.

References ThreadSafePointerToBase< T >::output().

◆ output()

template<class T >
void ThreadSafePointerToBase< T >::output ( ostream &  out) const
inline

A handy function to output ThreadSafePointerTo's as a hex pointer followed by a reference count.

Definition at line 148 of file threadSafePointerToBase.I.

Referenced by ThreadSafePointerToBase< T >::clear().


The documentation for this class was generated from the following files: