Vectors¶
Usage
use Vectors;
-
config param
VectorGrowthRate
: real = 1.5¶
-
class
Vector
¶ -
type
eltType
¶
-
const
growthRate
: real¶
-
var
dom
= {0..-1}¶
-
var
arr
: [dom] eltType¶
-
var
sz
: int¶
-
var
cap
: int¶
-
proc
init
(type eltType, initialSize: integral = 0, growthRate = VectorGrowthRate)¶
-
proc
init
(arr: [?D] ?eltType, growthRate = VectorGrowthRate)
-
proc
append
(elt: eltType)¶
-
proc
intersection
(other: Vector(eltType)): Vector(eltType)¶
-
proc
intersectionSize
(other: Vector(eltType)): int¶
-
proc
append
(elts: [] eltType)
-
proc
append
(ir: _iteratorRecord)
-
proc
sort
()¶
-
proc
this
(idx: integral) ref¶
-
iter
these
() ref¶
-
iter
these
(param tag: iterKind) ref
-
proc
size
¶
-
proc
clear
()¶
-
proc
toArray
()¶
-
proc
readWriteThis
(f)¶
-
type