visad.data
Class ArrayCache
- java.lang.Object
-
- visad.data.ArrayCache
-
public class ArrayCache extends java.lang.ObjectThis class is used by the CachingCoordinateSystem to do the actual caching mapping one array to another one
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classArrayCache.DoubleResultstatic classArrayCache.FloatResult
-
Constructor Summary
Constructors Constructor and Description ArrayCache()ctorArrayCache(boolean enabled)ctor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidfinalize()ArrayCache.DoubleResultget(java.lang.String key, double[][] input)Get the converted value for the specified key and input pairsArrayCache.FloatResultget(java.lang.String key, float[][] input)Get the converted value for the specified key and input pairsvoidput(java.lang.String key, double[][] input, ArrayCache.DoubleResult results)Put the converted value for the specified key and input pairsvoidput(java.lang.String key, float[][] input, ArrayCache.FloatResult results)Put the converted value for the specified key and input pairs
-
-
-
Constructor Detail
-
ArrayCache
public ArrayCache()
ctor
-
ArrayCache
public ArrayCache(boolean enabled)
ctor- Parameters:
enabled- If false then never cache
-
-
Method Detail
-
get
public ArrayCache.FloatResult get(java.lang.String key, float[][] input)
Get the converted value for the specified key and input pairs- Parameters:
key- The key (e.g., "toReference", "fromReference")input- The input- Returns:
- value for supplied key
-
get
public ArrayCache.DoubleResult get(java.lang.String key, double[][] input)
Get the converted value for the specified key and input pairs- Parameters:
key- The key (e.g., "toReference", "fromReference")input- The input- Returns:
- value for the supplied key
-
put
public void put(java.lang.String key, double[][] input, ArrayCache.DoubleResult results)Put the converted value for the specified key and input pairs- Parameters:
key- The keyinput- The input arrayresults- The array to store
-
put
public void put(java.lang.String key, float[][] input, ArrayCache.FloatResult results)Put the converted value for the specified key and input pairs- Parameters:
key- The keyinput- The input arrayresults- The array to store
-
finalize
public void finalize() throws java.lang.Throwable- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-
-
DMelt 3.0 © DataMelt by jWork.ORG