SymbolIndexer

interface SymbolIndexer

An environment to easy transform indexed variables to symbols and back. TODO requires multi-receivers to be beautiful

Functions

get
Link copied to clipboard
common
open operator fun <T> Array<T>.get(symbol: Symbol): T
open operator fun DoubleArray.get(symbol: Symbol): Double
open operator fun <T> List<T>.get(symbol: Symbol): T
open operator fun <T> Point<T>.get(symbol: Symbol): T
open operator fun <T> Structure2D<T>.get(rowSymbol: Symbol, columnSymbol: Symbol): T
indexOf
Link copied to clipboard
common
open fun indexOf(symbol: Symbol): Int
toDoubleArray
Link copied to clipboard
common
open fun Map<Symbol, Double>.toDoubleArray(): DoubleArray
toList
Link copied to clipboard
common
open fun <T> Map<Symbol, T>.toList(): List<T>
toMap
Link copied to clipboard
common
open fun DoubleArray.toMap(): Map<Symbol, Double>
open fun <T> Point<T>.toMap(): Map<Symbol, T>
toPoint
Link copied to clipboard
common
open fun Map<Symbol, Double>.toPoint(): DoubleBuffer
open fun <T> Map<Symbol, T>.toPoint(bufferFactory: BufferFactory<T>): Point<T>

Properties

symbols
Link copied to clipboard
common
abstract val symbols: List<Symbol>

Inheritors

SimpleSymbolIndexer
Link copied to clipboard

Sources

common source
Link copied to clipboard