Public Member Functions | |
def | __call__ (cls, value) |
def | __getitem__ (cls, key) |
def | __init__ (cls, name, bases, dct) |
def | __len__ (cls) |
Private Attributes | |
_map | |
_members | |
_reversemap | |
Definition at line 47 of file conddblib.py.
def conddblib.EnumMetaclass.__init__ | ( | cls, | |
name, | |||
bases, | |||
dct | |||
) |
Definition at line 48 of file conddblib.py.
def conddblib.EnumMetaclass.__call__ | ( | cls, | |
value | |||
) |
Returns the key for this value.
Definition at line 67 of file conddblib.py.
References conddblib.EnumMetaclass._reversemap.
def conddblib.EnumMetaclass.__getitem__ | ( | cls, | |
key | |||
) |
Returns the value for this key (if the key is an integer, the value is the nth member from the sorted members list).
Definition at line 57 of file conddblib.py.
References conddblib.EnumMetaclass._map, and conddblib.EnumMetaclass._members.
def conddblib.EnumMetaclass.__len__ | ( | cls | ) |
|
private |
Definition at line 50 of file conddblib.py.
Referenced by conddblib.EnumMetaclass.__getitem__().
|
private |
Definition at line 49 of file conddblib.py.
Referenced by conddblib.EnumMetaclass.__getitem__(), and conddblib.EnumMetaclass.__len__().
|
private |
Definition at line 51 of file conddblib.py.
Referenced by conddblib.EnumMetaclass.__call__().