Package pyamf :: Package util :: Class IndexedCollection

[hide private]
[frames] | no frames]

# Class IndexedCollection

source code

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

getByReference(self, ref) | source code

getReferenceTo(self, obj) | source code

append(self, obj) | source code

remove(self, obj) | source code

__eq__(self, other) | source code

__len__(self) | source code

__getitem__(self, idx) | source code

__contains__(self, obj) | source code

__repr__(self) repr(x) | source code

__iter__(self) | source code

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)

### getByReference(self, ref)

source code

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

### getReferenceTo(self, obj)

source code

Raises:
  - `pyamf.ReferenceError` - Value not found.

### remove(self, obj)

source code

Raises:
  - `pyamf.ReferenceError` - Trying to remove an invalid reference.

### __repr__(self)
(Representation operator)

source code

repr(x)

Overrides: object.__repr__
  (inherited documentation)