Definition at line 26 of file ShipGeoConfig.py.
◆ __call__()
ShipGeoConfig._SingletonDict.__call__ |
( |
|
cls, |
|
|
* |
args, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 29 of file ShipGeoConfig.py.
29 def __call__(cls, *args, **kwargs):
30 if cls not in cls._instances:
31 cls._instances[cls] = super(_SingletonDict, cls).__call__(*args, **kwargs)
32 return cls._instances[cls]
33
◆ __getitem__()
ShipGeoConfig._SingletonDict.__getitem__ |
( |
|
cls, |
|
|
|
key |
|
) |
| |
Definition at line 34 of file ShipGeoConfig.py.
34 def __getitem__(cls, key):
35 return cls._instances[cls][key]
36
◆ delitem()
ShipGeoConfig._SingletonDict.delitem |
( |
|
cls, |
|
|
|
key |
|
) |
| |
Definition at line 37 of file ShipGeoConfig.py.
37 def delitem(cls, key):
38 del(cls._instances[cls][key])
39
40
◆ _instances
dict ShipGeoConfig._SingletonDict._instances = {} |
|
staticprotected |
The documentation for this class was generated from the following file: