Package pyamf :: Package util :: Class IndexedMap
[hide private]
[frames] | no frames]

Class IndexedMap

source code


Like IndexedCollection, but also maps to another object.


Since: 0.4

Instance Methods [hide private]
 
__init__(self, use_hash=False, exceptions=True)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
clear(self)
Clears the index and mapping.
source code
 
getMappedByReference(self, ref)
Returns the mapped object by reference.
source code
 
append(self, obj)
Appends obj to this index.
source code
 
map(self, obj, mapped_obj)
Maps an object.
source code

Inherited from IndexedCollection: __contains__, __eq__, __getitem__, __iter__, __len__, __repr__, getByReference, getReferenceTo

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Instance Variables [hide private]

Inherited from IndexedCollection: exceptions

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, use_hash=False, exceptions=True)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

clear(self)

source code 

Clears the index and mapping.

Overrides: IndexedCollection.clear

getMappedByReference(self, ref)

source code 

Returns the mapped object by reference.

Raises:

append(self, obj)

source code 

Appends obj to this index.

Returns:
The reference to obj in this index.
Overrides: IndexedCollection.append