# ObjectRef

from direct.showbase.ContainerLeakDetector import ObjectRef

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.)

## Inheritance:

ObjectRef:

## Methods of ObjectRef:

__init__
__repr__
_getContainerByEval
destroy
getContainerGen
getEvalStrGen
getFinalIndirectionStr
getNumIndirections
goesThrough
goesThroughGen

__init__ def __init__(self, indirection, objId, other=None) Undocumented function.

__repr__ def __repr__(self) Undocumented function.

_getContainerByEval def _getContainerByEval(self, evalStr, curObj=None) Undocumented function.

destroy def destroy(self) Undocumented function.

getContainerGen def getContainerGen(self, getInstance=False) Undocumented function.

getEvalStrGen def getEvalStrGen(self, getInstance=False) Undocumented function.

getFinalIndirectionStr def getFinalIndirectionStr(self) Undocumented function.

getNumIndirections def getNumIndirections(self) Undocumented function.

goesThrough def goesThrough(self, obj=None, objId=None) Undocumented function.

goesThroughGen def goesThroughGen(self, obj=None, objId=None) Undocumented function.