class documentation
class _CMASolutionDict_functional(_SolutionDict):
Constructor: _CMASolutionDict_functional(*args, **kwargs)
Undocumented
Method | __init__ |
Undocumented |
Method | insert |
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. |
Instance Variable | last |
Undocumented |
Instance Variable | last |
Undocumented |
Inherited from SolutionDict
:
Method | __contains__ |
Undocumented |
Method | __delitem__ |
remove only most current key-entry of list with same keys |
Method | __getitem__ |
define access self[key] |
Method | __setitem__ |
define self[key] = value |
Method | key |
compute key of x |
Method | truncate |
truncate to max_len/2 when len(self) > max_len. |
Method | truncate |
truncate to length len_ removing the oldest entries |
Instance Variable | data |
Undocumented |
Instance Variable | _unhashed |
Undocumented |
Inherited from DerivedDictBase
(via SolutionDict
):
Method | __iter__ |
Undocumented |
Method | __len__ |
Undocumented |
Instance Variable | data |
Undocumented |
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.
TODO: this looks overdesigned. Only the keyword iteration
is
currently used and not even necessary anymore because
SolutionDict
is now ordered. Just using SolutionDict
would be
good enough with insertions done using a dict
as value if
desired, or a single info
argument could be implemented in
SolutionDict
for any additional information.