Panda3D
Classes | Public Member Functions | Static Public Attributes | List of all members
ObjectRef Class Reference

Classes

class  FailedEval
 

Public Member Functions

def __init__ (self, indirection, objId, other=None)
 
def __repr__ (self)
 
def destroy (self)
 
def getContainerGen (self, getInstance=False)
 
def getEvalStrGen (self, getInstance=False)
 
def getFinalIndirectionStr (self)
 
def getNumIndirections (self)
 
def goesThrough (self, obj=None, objId=None)
 
def goesThroughGen (self, obj=None, objId=None)
 

Static Public Attributes

 notify = directNotify.newCategory("ObjectRef")
 

Detailed Description

stores a reference to a container in a way that does not prevent garbage
collection of the container if possible
stored as a series of 'indirections' (obj.foo -> '.foo', dict[key] -> '[key]', etc.)

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  indirection,
  objId,
  other = None 
)

Member Function Documentation

◆ __repr__()

def __repr__ (   self)

◆ destroy()

def destroy (   self)

◆ getContainerGen()

def getContainerGen (   self,
  getInstance = False 
)

◆ getEvalStrGen()

def getEvalStrGen (   self,
  getInstance = False 
)

◆ getFinalIndirectionStr()

def getFinalIndirectionStr (   self)

◆ getNumIndirections()

def getNumIndirections (   self)

◆ goesThrough()

def goesThrough (   self,
  obj = None,
  objId = None 
)

◆ goesThroughGen()

def goesThroughGen (   self,
  obj = None,
  objId = None 
)

Member Data Documentation

◆ notify

notify = directNotify.newCategory("ObjectRef")
static