Interface ContextIndex
-
- All Known Implementing Classes:
AbstractArrayContext
,ArrayContext
,DoubleOnlyArrayContext
public interface ContextIndex
Indexed context lookup methods. Any context which implements these methods supports optimizations where map lookups are replaced by indexed lookups.- Author:
- bratseth
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Value
get(int index)
double
getDouble(int index)
int
getIndex(java.lang.String name)
Returns the index from a name.int
size()
Returns the number of bound variables in this
-
-
-
Method Detail
-
size
int size()
Returns the number of bound variables in this
-
getIndex
int getIndex(java.lang.String name)
Returns the index from a name.- Throws:
java.lang.NullPointerException
- is this name is not known to this context
-
get
Value get(int index)
-
getDouble
double getDouble(int index)
-
-