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 (^)
|
__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)
|
__init__(self,
objects=None,
CompFunc=None)
(Constructor)
| source code |
None
-
|
__getslice__(self,
i,
j)
(Slicling operator)
| source code |
None
-
|
__sub__(self,
right)
(Subtraction operator)
| source code |
None
-
|