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=nullptr)
 
 CPT_InternalName (const PointerTo< InternalName > &copy)
 
 CPT_InternalName (PointerTo< InternalName > &&from) noexcept
 
 CPT_InternalName (const ConstPointerTo< InternalName > &copy)
 
 CPT_InternalName (ConstPointerTo< InternalName > &&from) noexcept
 
 CPT_InternalName (const std::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)
 
CPT_InternalNameoperator= (PointerTo< InternalName > &&from) noexcept
 
CPT_InternalNameoperator= (ConstPointerTo< InternalName > &&from) noexcept
 
- Public Member Functions inherited from ConstPointerTo< InternalName >
constexpr ConstPointerTo (std::nullptr_t) noexcept
 
 ConstPointerTo (const To *ptr) noexcept
 
 ConstPointerTo (const PointerTo< InternalName > &copy)
 
 ConstPointerTo (const ConstPointerTo< InternalName > &copy)
 
 ConstPointerTo (PointerTo< InternalName > &&from) noexcept
 
 ConstPointerTo (ConstPointerTo< InternalName > &&from) noexcept
 
 ConstPointerTo (const Y *ptr) noexcept
 
 ConstPointerTo (const PointerTo< Y > &r) noexcept
 
 ConstPointerTo (const ConstPointerTo< Y > &r) noexcept
 
 ConstPointerTo (PointerTo< Y > &&r) noexcept
 
 ConstPointerTo (ConstPointerTo< Y > &&r) noexcept
 
 ConstPointerTo (const typename ConstPointerTo< InternalName >::To *ptr) noexcept
 
const InternalName *& cheat ()
 Returns a reference to the underlying pointer. More...
 
constexpr const To & operator * () const noexcept
 
constexpr const To * operator -> () const noexcept
 
constexpr operator const InternalName * () const noexcept
 We also have the typecast operator to automatically convert ConstPointerTo's to the required kind of actual pointer. More...
 
ConstPointerTo< InternalName > & operator= (PointerTo< InternalName > &&from) noexcept
 
ConstPointerTo< InternalName > & operator= (ConstPointerTo< InternalName > &&from) noexcept
 
ConstPointerTo< InternalName > & operator= (const PointerTo< Y > &r) noexcept
 
ConstPointerTo< InternalName > & operator= (const ConstPointerTo< Y > &r) noexcept
 
ConstPointerTo< InternalName > & operator= (PointerTo< Y > &&r) noexcept
 
ConstPointerTo< InternalName > & operator= (ConstPointerTo< Y > &&r) noexcept
 
ConstPointerTo< InternalName > & operator= (const To *ptr)
 
ConstPointerTo< InternalName > & operator= (const PointerTo< InternalName > &copy)
 
ConstPointerTo< InternalName > & operator= (const ConstPointerTo< InternalName > &copy)
 
constexpr const To * p () const noexcept
 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 (std::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
 
constexpr 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 193 of file internalName.h.


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