PySharp Units of Measure
Units of Measure in Python
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
uom.cache_manager.CacheManager Class Reference

This class manages the various caches for units of measure to improve performance. More...

Public Member Functions

 __init__ (self)
 
 getUOMBySymbol (self, symbol)
 Get the unit of measure with this unique symbol.
 
 getUOMByUnit (self, unit)
 Get the unit of measure with this Unit enumeration.
 
 getBaseUOM (self, baseSymbol)
 Get the unit of measure with this base symbol.
 
 clearCache (self)
 Remove all cached units of measure.
 
 getCachedUOMs (self)
 
 getSymbolCache (self)
 Get the units of measure cached by their symbol.
 
 getBaseSymbolCache (self)
 Get the units of measure cached by their base symbol.
 
 getEnumerationCache (self)
 Get the units of measure cached by their Unit enumeration.
 
 unregisterUOM (self, uom)
 Remove a UOM from the cache.
 
 registerUOM (self, uom)
 Cache this unit of measure.
 
 getTypeMap (self, unitType)
 

Static Public Member Functions

 instance ()
 

Public Attributes

 symbolRegistry
 
 baseRegistry
 
 unitRegistry
 
 unitTypeRegistry
 

Static Public Attributes

 manager = None
 

Detailed Description

This class manages the various caches for units of measure to improve performance.

Member Function Documentation

◆ getBaseSymbolCache()

uom.cache_manager.CacheManager.getBaseSymbolCache ( self)

Get the units of measure cached by their base symbol.

Returns
Base symbol cache

◆ getBaseUOM()

uom.cache_manager.CacheManager.getBaseUOM ( self,
baseSymbol )

Get the unit of measure with this base symbol.

Parameters
baseSymbolBase symbol
Returns
UnitOfMeasure

◆ getEnumerationCache()

uom.cache_manager.CacheManager.getEnumerationCache ( self)

Get the units of measure cached by their Unit enumeration.

Returns
Enumeration cache

◆ getSymbolCache()

uom.cache_manager.CacheManager.getSymbolCache ( self)

Get the units of measure cached by their symbol.

Returns
Symbol cache

◆ getUOMBySymbol()

uom.cache_manager.CacheManager.getUOMBySymbol ( self,
symbol )

Get the unit of measure with this unique symbol.

Parameters
symbolSymbol
Returns
UnitOfMeasure

◆ getUOMByUnit()

uom.cache_manager.CacheManager.getUOMByUnit ( self,
unit )

Get the unit of measure with this Unit enumeration.

Parameters
unitUnit
Returns
UnitOfMeasure

◆ registerUOM()

uom.cache_manager.CacheManager.registerUOM ( self,
uom )

Cache this unit of measure.

Parameters
uomUnitOfMeasure to cache

◆ unregisterUOM()

uom.cache_manager.CacheManager.unregisterUOM ( self,
uom )

Remove a UOM from the cache.

Parameters
uomUnitOfMeasure to remove

The documentation for this class was generated from the following file: