Module cma :: Class CMASolutionDict
[hide private]
[frames] | no frames]

Class CMASolutionDict

source code

       object --+                    
                |                    
    _abcoll.Sized --+                
                    |                
       object --+   |                
                |   |                
 _abcoll.Iterable --+                
                    |                
       object --+   |                
                |   |                
_abcoll.Container --+                
                    |                
      _abcoll.Mapping --+            
                        |            
   _abcoll.MutableMapping --+        
                            |        
              DerivedDictBase --+    
                                |    
                     SolutionDict --+
                                    |
                                   CMASolutionDict

a hack to get most code examples running
Nested Classes [hide private]

Inherited from _abcoll.Sized: __metaclass__

Instance Methods [hide private]
 
insert(self, key, geno=None, iteration=None, fitness=None, value=None)
insert an entry with key key and value value if value is not None else {'geno':key} and self[key]['kwarg'] = kwarg if kwarg is not None for the further kwargs.
source code
D[k] if k in D, else d
get(self, key)
d defaults to None.
source code
 
__getitem__(self, key)
defines self[key]
source code
 
__setitem__(self, key, value)
defines self[key] = value
source code
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code

Inherited from SolutionDict: __delitem__, key, truncate

Inherited from DerivedDictBase: __contains__, __iter__, __len__

Inherited from _abcoll.MutableMapping: clear, pop, popitem, setdefault, update

Inherited from _abcoll.Mapping: __eq__, __ne__, items, iteritems, iterkeys, itervalues, keys, values

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

Class Methods [hide private]

Inherited from _abcoll.Sized: __subclasshook__

Class Variables [hide private]

Inherited from DerivedDictBase: __abstractmethods__

Inherited from _abcoll.Mapping: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

get(self, key)

source code 

d defaults to None.

Returns: D[k] if k in D, else d
Overrides: _abcoll.Mapping.get
(inherited documentation)

__getitem__(self, key)
(Indexing operator)

source code 
defines self[key]
Overrides: _abcoll.Mapping.__getitem__

__setitem__(self, key, value)
(Index assignment operator)

source code 
defines self[key] = value
Overrides: _abcoll.MutableMapping.__setitem__

__init__(self, *args, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)