Package Ganga :: Package GPIDev :: Package Lib :: Package Registry :: Module BoxRegistry' :: Class BoxRegistrySliceProxy
[hide private]
[frames] | no frames]

Class BoxRegistrySliceProxy

source code

                           object --+    
                                    |    
RegistrySliceProxy.RegistrySliceProxy --+
                                        |
                                       BoxRegistrySliceProxy

This object is a list of objects in the box

Instance Methods [hide private]
 
__call__(self, x)
Access individual object.
source code
 
__getitem__(self, x)
Get an item by positional index.
source code
 
__getslice__(self, i1, i2)
Get a slice.
source code
 
remove_all(self) source code

Inherited from RegistrySliceProxy.RegistrySliceProxy: __contains__, __init__, __iter__, __len__, __str__, clean, ids, incomplete_ids, select

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__call__(self, x)
(Call operator)

source code 

Access individual object. Examples: box(10) : get object with id 10 or raise exception if it does not exist.

__getitem__(self, x)
(Indexing operator)

source code 

Get an item by positional index. Examples: box[-1] : get last object, box[0] : get first object, box[1] : get second object.

__getslice__(self, i1, i2)
(Slicling operator)

source code 

Get a slice. Examples: box[2:] : get first two objects, box[:-10] : get last 10 objects.