SolverVariableValues


class SolverVariableValues : ArrayRow.ArrayRowVariables


Store a set of variables and their values in an array-based linked list coupled with a custom hashmap.

Summary

Public functions

Unit
add(v: SolverVariable!, value: Float, removeFromDefinition: Boolean)
Unit
Boolean
Unit
Unit
Float
get(variable: SolverVariable!)
Int
SolverVariable!
getVariable(index: Int)
Float
Int
indexOf(variable: SolverVariable!)
Unit
Unit
put(variable: SolverVariable!, value: Float)
Float
remove(v: SolverVariable!, removeFromDefinition: Boolean)
Int
String!
Float
use(definition: ArrayRow!, removeFromDefinition: Boolean)

Protected properties

Cache!

Public functions

add

Added in 1.1.0
fun add(v: SolverVariable!, value: Float, removeFromDefinition: Boolean): Unit

clear

Added in 1.1.0
fun clear(): Unit

contains

Added in 1.1.0
fun contains(variable: SolverVariable!): Boolean

display

Added in 1.1.0
fun display(): Unit

divideByAmount

Added in 1.1.0
fun divideByAmount(amount: Float): Unit

get

Added in 1.1.0
fun get(variable: SolverVariable!): Float

getCurrentSize

Added in 1.1.0
fun getCurrentSize(): Int

getVariable

Added in 1.1.0
fun getVariable(index: Int): SolverVariable!

getVariableValue

Added in 1.1.0
fun getVariableValue(index: Int): Float

indexOf

Added in 1.1.0
fun indexOf(variable: SolverVariable!): Int

invert

Added in 1.1.0
fun invert(): Unit

put

Added in 1.1.0
fun put(variable: SolverVariable!, value: Float): Unit

remove

Added in 1.1.0
fun remove(v: SolverVariable!, removeFromDefinition: Boolean): Float

sizeInBytes

Added in 1.1.0
fun sizeInBytes(): Int

toString

fun toString(): String!

use

Added in 1.1.0
fun use(definition: ArrayRow!, removeFromDefinition: Boolean): Float

Protected properties

mCache

Added in 1.1.0
protected val mCacheCache!