getvector

SpecialNodes getvector

input ports:
Name Type Description Optional

vector

vector<?0>

a vector

no

index

int

the index to be retrieved from the vector

no

output ports:
Name Type Description Optional

output

?0

thevalue at the given index in the vector

no

getmap reads a vector and index from its inputs, and outputs the value at the given index from the vector. It is an error if the index is out of bounds (negative or greater than or equal to the length of the vector).