Table Of Contents

Previous topic

pub

Next topic

_SingletonKey

This Page

phoenix_title _NodeCallback

Encapsulate a weak reference to a method of a _TopicTreeNode in such a way that the method can be called, if the node is still alive, but the callback does not keep the node alive. Also, define two methods, preNotify() and noNotify(), which can be redefined to something else, very useful for testing.


class_hierarchy Inheritance Diagram

Inheritance diagram for class _NodeCallback

Inheritance diagram of _NodeCallback


method_summary Methods Summary

__init__  
noNotify Gets called if the _TopicTreeNode for this callback is dead
preNotify ‘Gets called just before our callback (self.objRef) is called

api Class API



class _NodeCallback

Encapsulate a weak reference to a method of a _TopicTreeNode in such a way that the method can be called, if the node is still alive, but the callback does not keep the node alive. Also, define two methods, preNotify() and noNotify(), which can be redefined to something else, very useful for testing.


Methods



__init__(self, obj)


noNotify(self)

Gets called if the _TopicTreeNode for this callback is dead



preNotify(self, dead)

‘Gets called just before our callback (self.objRef) is called