b.i.IdentityMap(object) : class documentation

Part of bzrlib.identitymap View In Hierarchy

An in memory map from object id to instance.

An IdentityMap maps from keys to single instances of objects in memory. We have explicit calls on the map for the root of each inheritance tree that is store in the map. Look for find_CLASS and add_CLASS methods.

Method add_weave Add weave to the map with a given id.
Method find_weave Return the weave for 'id', or None if it is not present.
Method __init__ Undocumented
Method remove_object Remove object from map.
Method _weave_key Return the key for a weaves id.
def add_weave(self, id, weave):
Add weave to the map with a given id.
def find_weave(self, id):
Return the weave for 'id', or None if it is not present.
def __init__(self):
Undocumented
def remove_object(self, an_object):
Remove object from map.
def _weave_key(self, id):
Return the key for a weaves id.
API Documentation for Bazaar, generated by pydoctor at 2019-08-22 00:28:44.