PointerTo_Connection
from panda3d.core import PointerTo_Connection
- class PointerTo_Connection
Bases:
Bases:
PointerToBase_Connection
Inheritance diagram
- __init__()
- __init__(ptr: Connection)
- __init__(copy: Connection)
- __init__(param0: decltype_nullptr)
- assign(ptr: Connection) PointerTo_Connection
- assign(copy: Connection) PointerTo_Connection
- clear()
- p() Connection
If your base class is a derivative of
TypedObject
, you might want to use the DCAST macro defined in typedObject.h instead, e.g. DCAST(MyType, ptr). This provides a clean downcast that doesn’t require .p() or any double-casting, and it can be run-time checked for correctness.