clearpath_config.common.types.list module
- class clearpath_config.common.types.list.ListConfig(uid: Callable, obj_type: type, uid_type: type)
Bases:
Generic
[T
,U
]- add(obj: T) None
- extend(other: list)
- find(_obj: T | U) int
- get(_obj: T | U) T
- get_all() List[T]
- remove(_obj: T | U) None
- remove_all() None
- replace(obj: T) None
- set(obj: T) None
- set_all(_list: List[T]) None
- static uid_level(T) int
- static uid_level_row(T) tuple
- static uid_name(T) str
- class clearpath_config.common.types.list.OrderedListConfig(obj_type: type, start_idx: int = 0)
Bases:
Generic
[T
]- add(obj: T) None
- find(obj: T | int) int
- get(obj: T | int) T
- get_all() List[T]
- remove(obj: T | int) None
- remove_all() None
- replace(obj: T) None
- set(obj: T) None
- set_all(_list: List[T]) None
- set_index_offset(offset: int) None
- update()