CADETProcess.dataStructure.cache.cached_property_if_locked

CADETProcess.dataStructure.cache.cached_property_if_locked#

class CADETProcess.dataStructure.cache.cached_property_if_locked(fget=None, fset=None, fdel=None, doc=None)[source]#

A property that caches its value if the instance is locked.

This property extends the built-in property to cache its value when the instance is locked. The cached value is stored in the instance’s cached_properties dictionary.

Attributes:
fdel
fget
fset
name

str: name of the property.

Methods

deleter(object, /)

Descriptor to obtain a copy of the property with a different deleter.

getter(object, /)

Descriptor to obtain a copy of the property with a different getter.

setter(object, /)

Descriptor to obtain a copy of the property with a different setter.