Panda3D
Public Member Functions | List of all members
CPT_InternalName Class Reference

This is a const pointer to an InternalName, and should be used in lieu of a CPT(InternalName) in function arguments. More...

#include "internalName.h"

Inheritance diagram for CPT_InternalName:
ConstPointerTo< InternalName > PointerToBase< InternalName > PointerToVoid MemoryBase

Public Member Functions

 CPT_InternalName (const To *ptr=(const To *) NULL)
 
 CPT_InternalName (const PointerTo< InternalName > &copy)
 
 CPT_InternalName (const ConstPointerTo< InternalName > &copy)
 
 CPT_InternalName (const string &name)
 
template<int N>
 CPT_InternalName (const char(&literal)[N])
 
CPT_InternalNameoperator= (const To *ptr)
 
CPT_InternalNameoperator= (const PointerTo< InternalName > &copy)
 
CPT_InternalNameoperator= (const ConstPointerTo< InternalName > &copy)
 
- Public Member Functions inherited from ConstPointerTo< InternalName >
 ConstPointerTo (const To *ptr=(const To *) NULL)
 
 ConstPointerTo (const PointerTo< InternalName > &copy)
 
 ConstPointerTo (const ConstPointerTo< InternalName > &copy)
 
const InternalName *& cheat ()
 Returns a reference to the underlying pointer. More...
 
void clear ()
 
 operator const InternalName * () const
 We also have the typecast operator to automatically convert ConstPointerTo's to the required kind of actual pointer. More...
 
const To & operator* () const
 
const To * operator-> () const
 
ConstPointerTo< InternalName > & operator= (const To *ptr)
 
ConstPointerTo< InternalName > & operator= (const PointerTo< InternalName > &copy)
 
ConstPointerTo< InternalName > & operator= (const ConstPointerTo< InternalName > &copy)
 
const To * p () const
 Returns an ordinary pointer instead of a ConstPointerTo. More...
 
- Public Member Functions inherited from PointerToBase< InternalName >
void clear ()
 A convenient way to set the PointerTo object to NULL. More...
 
void output (ostream &out) const
 A handy function to output PointerTo'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...
 

Additional Inherited Members

- Public Types inherited from ConstPointerTo< InternalName >
typedef PointerToBase< InternalName >::To To
 
- Public Types inherited from PointerToBase< InternalName >
typedef InternalName To
 

Detailed Description

This is a const pointer to an InternalName, and should be used in lieu of a CPT(InternalName) in function arguments.

The extra feature that it offers is that it has a constructor to automatically convert from a string, so that strings are coerced by the compiler when passed to such a function.

Definition at line 197 of file internalName.h.


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