Panda3D
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Friends | List of all members
PointerToBase< T > Class Template Reference

This is the base class for PointerTo and ConstPointerTo. More...

#include "pointerToBase.h"

Inheritance diagram for PointerToBase< T >:
PointerToVoid MemoryBase ConstPointerTo< InternalName > ConstPointerTo< FileReference > PointerTo< VirtualFile > PointerTo< Multifile > PointerTo< FileBase > PointerTo< VirtualFileMount > PointerToArrayBase< unsigned char > ConstPointerTo< T > PointerTo< T >

Public Types

typedef T To
 

Public Member Functions

void clear ()
 A convenient way to set the PointerTo object to NULL.
 
void output (std::ostream &out) const
 A handy function to output PointerTo's as a hex pointer followed by a reference count.
 
- Public Member Functions inherited from PointerToVoid
size_t get_hash () const
 
constexpr bool is_null () const
 Returns true if the PointerTo is a NULL pointer, false otherwise.
 
bool operator!= (const PointerToVoid &other) const
 
bool operator< (const PointerToVoid &other) const
 
bool operator< (const void *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.
 
- Public Member Functions inherited from MemoryBase
void operator delete (void *, void *)
 
void operator delete (void *ptr)
 
void operator delete[] (void *, void *)
 
void operator delete[] (void *ptr)
 
void * operator new (size_t size)
 
void * operator new (size_t size, void *ptr)
 
void * operator new[] (size_t size)
 
void * operator new[] (size_t size, void *ptr)
 

Friends

template<typename Y >
class WeakPointerToBase
 

Detailed Description

template<class T>
class PointerToBase< T >

This is the base class for PointerTo and ConstPointerTo.

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

Definition at line 29 of file pointerToBase.h.

Member Typedef Documentation

◆ To

template<class T >
typedef T PointerToBase< T >::To

Definition at line 31 of file pointerToBase.h.

Member Function Documentation

◆ clear()

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

A convenient way to set the PointerTo object to NULL.

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

Definition at line 208 of file pointerToBase.I.

◆ output()

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

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

Definition at line 218 of file pointerToBase.I.

Friends And Related Symbol Documentation

◆ PointerToBase

template<class T >
template<typename Y >
friend class PointerToBase
friend

Definition at line 55 of file pointerToBase.h.

◆ WeakPointerToBase

template<class T >
template<typename Y >
friend class WeakPointerToBase
friend

Definition at line 56 of file pointerToBase.h.


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