Package asmach :: Module user_data :: Class Remapper

Class Remapper

source code


Key-remapping proxy to a SMACH userdata structure.

Instance Methods
 
__init__(self, ud, input_keys=[], output_keys=[], remapping={})
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
update(self, other_userdata)
Combine this userdata struct with another.
source code
 
__getitem__(self, key) source code
 
__setitem__(self, key, item) source code
 
keys(self) source code
 
__contains__(self, key) source code
 
__getattr__(self, name)
Overload getattr to be thread safe.
source code
 
__setattr__(self, name, value)
Overload setattr to be thread safe.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __sizeof__, __str__, __subclasshook__

    Inherited from UserData
 
extract(self, keys, remapping) source code
 
merge(self, ud, keys, remapping) source code
Properties

Inherited from object: __class__

Method Details

__init__(self, ud, input_keys=[], output_keys=[], remapping={})
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

update(self, other_userdata)

source code 

Combine this userdata struct with another. This overwrites duplicate keys with values from other_userdata.

Overrides: UserData.update
(inherited documentation)

__getitem__(self, key)
(Indexing operator)

source code 
Overrides: UserData.__getitem__

__setitem__(self, key, item)
(Index assignment operator)

source code 
Overrides: UserData.__setitem__

keys(self)

source code 
Overrides: UserData.keys

__contains__(self, key)
(In operator)

source code 
Overrides: UserData.__contains__

__getattr__(self, name)
(Qualification operator)

source code 

Overload getattr to be thread safe.

Overrides: UserData.__getattr__
(inherited documentation)

__setattr__(self, name, value)

source code 

Overload setattr to be thread safe.

Overrides: object.__setattr__
(inherited documentation)