tff.structure.Mapping

Inherits From: Iterable

Methods

get

Retrieve the corresponding layout by the string key.

When there isn't an exact match, all the existing keys in the layout map will be treated as a regex and map against the input key again. The first match will be returned, based on the key insertion order. Return None if there isn't any match found.

Args
key the string key as the query for the layout.

Returns
Corresponding layout based on the query.

items

D.items() -> a set-like object providing a view on D's items

keys

D.keys() -> a set-like object providing a view on D's keys

values

D.values() -> an object providing a view on D's values

__contains__

__eq__

Return self==value.

__getitem__

__iter__

__len__