Package Pmv :: Module Grid :: Class Set
[hide private]
[frames] | no frames]

Class Set

source code

Known Subclasses:
GridPointSet


Base class for sets of objects. The objects are stored in a list.
For the sake of simplicity, the set is assumed to be homogenous
Functios below are provided:
        add (+), sub (-), and (&), or (|), xor (^)



Instance Methods [hide private]
  __init__(self, objects=None, CompFunc=None)
  __getitem__(self, key)
  __getslice__(self, i, j)
  __repr__(self)
  __len__(self)
  __cmp__(self, right)
  filter(self, func)
  __add__(self, right)
  __sub__(self, right)
  __and__(self, right)
  __or__(self, right)
  __xor__(self, right)
  _rc(self, objlst, func)

Method Details [hide private]

__init__(self, objects=None, CompFunc=None)
(Constructor)

source code 
None

__getitem__(self, key)
(Indexing operator)

source code 
None

__getslice__(self, i, j)
(Slicling operator)

source code 
None

__repr__(self)
(Representation operator)

source code 
None

__len__(self)
(Length operator)

source code 
None

__cmp__(self, right)
(Comparison operator)

source code 
None

filter(self, func)

source code 
None

__add__(self, right)
(Addition operator)

source code 
None

__sub__(self, right)
(Subtraction operator)

source code 
None

__and__(self, right)
(And operator)

source code 
None

__or__(self, right)
(Or operator)

source code 
None

__xor__(self, right)

source code 
None

_rc(self, objlst, func)

source code 
None