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) x.__init__(...) initializes x; see x.__class__.__doc__ for signature | source code

clear(self) | source code

getMappedByReference(self, ref) | source code

append(self, obj) | source code

map(self, obj, mapped_obj) | source code

remove(self, obj) | 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__`

Properties | [hide private]

Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, use_hash=False)
(Constructor)

source code

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

Overrides: object.__init__
  (inherited documentation)

### clear(self)

source code

Overrides: IndexedCollection.clear

### getMappedByReference(self, ref)

source code

Raises:
  - `TypeError` - Bad reference type.
  - `pyamf.ReferenceError` - Reference not found.

### append(self, obj)

source code

Overrides: IndexedCollection.append

### remove(self, obj)

source code

Raises:
  - `pyamf.ReferenceError` - Trying to remove an invalid reference.
Overrides: IndexedCollection.remove
  (inherited documentation)