Panda3D
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes

PointerToArrayBase< Element > Class Template Reference

This is the base class for PointerToArray and ConstPointerToArray. More...

#include "pointerToArrayBase.h"

Inheritance diagram for PointerToArrayBase< Element >:
PointerToBase< ReferenceCountedVector< Element > > PointerToVoid MemoryBase ConstPointerToArray< Element > PointerToArray< Element >

List of all members.

Public Types

typedef PointerToBase
< ReferenceCountedVector
< Element > >::To 
To

Public Member Functions

void clear ()
size_t get_hash () const
bool is_null () const
 Returns true if the PointerTo is a NULL pointer, false otherwise.
void operator delete (void *ptr)
void operator delete (void *ptr, void *)
void operator delete[] (void *ptr)
void operator delete[] (void *, void *)
void * operator new (size_t size, void *ptr)
void * operator new (size_t size)
void * operator new[] (size_t size, void *ptr)
void * operator new[] (size_t size)
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 output (ostream &out) const

Protected Member Functions

 PointerToArrayBase (ReferenceCountedVector< Element > *ptr)
 PointerToArrayBase (const PointerToArrayBase< Element > &copy)
void reassign (To *ptr)
void reassign (const PointerToBase< To > &copy)

Protected Attributes

void * _void_ptr

Detailed Description

template<class Element>
class PointerToArrayBase< Element >

This is the base class for PointerToArray and ConstPointerToArray.

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

This extends PointerToBase to be a pointer to a ReferenceCountedVector, above, which is essentially a reference-counted STL vector.

Definition at line 77 of file pointerToArrayBase.h.


Member Function Documentation

bool PointerToVoid::is_null ( ) const [inline, inherited]

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

(Direct comparison to a NULL pointer also works.)

Reimplemented in PointerTo< T >, ThreadSafePointerTo< T >, and WeakConstPointerTo< 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