class documentation

class AliasingMonitorDict(AliasingDict[_K, _V], MonitorDict[_K, _V]): (source)

View In Hierarchy

The dictionary that supports aliasing, lazy dict and monitor.

Method add_alias Alias 'alias' to 'name'.
Method merge_from Merge the other `AliasingMonitorDict` into current class.
Method _copy_item Assign the dict `src` value to `tgt`.
Method _merge Undocumented

Inherited from AliasingDict:

Method __contains__ Undocumented
Method __getitem__ Undocumented
Method __hash__ Undocumented
Method __init__ Undocumented
Method __repr__ Undocumented
Method __setitem__ Undocumented
Method clear Undocumented
Method copy Undocumented
Method fromkeys Undocumented
Method get Undocumented
Method has_key Undocumented
Method iteritems Undocumented
Method iterkeys Undocumented
Method itervalues Undocumented
Method pop Undocumented
Method popitem Undocumented
Method same_name Undocumented
Method setdefault Undocumented
Method update Undocumented
Method viewitems Undocumented
Method viewkeys Undocumented
Method viewvalues Undocumented
Property aliases Undocumented
Instance Variable _aliases Undocumented

Inherited from MonitorDict (via AliasingDict):

Method __delitem__ Undocumented
Property changestamp Undocumented
Property data Undocumented
def add_alias(self, alias, name, op=None): (source)

Alias 'alias' to 'name'. After aliasing, we will think `alias` and `name`, they represent the same name. We will merge the values if `op` is provided. Args: alias: A string. name: A string. op: The function used to merge the values.

def merge_from(self, lam_dict, op): (source)

Merge the other `AliasingMonitorDict` into current class. Args: lam_dict: The dict to merge from. op: The function used to merge the values.

def _copy_item(self, src, tgt): (source)

Assign the dict `src` value to `tgt`.

def _merge(self, name1, name2, op): (source)

Undocumented