Prev | Next | player |
player<Base> play
player<Base> play
creates an empty operation sequence.
rec
is
const recorder &rec
object, the assignment operation
play = rec
copies the operation sequence from the
recorder
rec
to the player
play
.
void play.Erase()
erases the operation sequence stored in
play%
(the operation sequence is empty after this operation).
The buffers used to store the tape information are returned
to the system (so as to conserve on memory).
op
and
i
have prototypes
OpCode op
size_t i
The syntax
op = play.GetOp(i)
sets
op
to the operation code for the i-th operation in the
operation sequence.
p
,
n
and
offset
have prototypes
const size_t *p
size_t n
size_t offset
The syntax
p = play.GetInd(n, offset)
returns a pointer to the
n
the values that start at the
specified offset in the operation sequence index vector.
p
and
i
have prototypes
const Base *p
size_t i
The syntax
p = play.GetPar(i)
returns a pointer to the value with index
i
in the operation sequence parameter vector.
iv
and
i
have prototypes
size_t iv
size_t i
the syntax
iv = play.GetVecInd(i)
returns the value with index
i
in the
operation sequence vec_ind vector.
n
has prototype
size_t n
the syntax
n = play.NumOp()
sets
n
to the number of
operations in the operation sequence.
n
has prototype
size_t n
the syntax
n = play.NumInd()
sets
n
to the number of elements in the
operation sequence index vector.
n
has prototype
size_t n
the syntax
n = play.NumPar()
sets
n
to the number of parameters
in the operation sequence parameter vector.
n
has prototype
size_t n
the syntax
n = play.NumVecInd()
sets
n
to the number of element in the
operation sequence vec_ind vector.
i
and
v
have prototypes
size_t i
size_t v
the syntax
play.ReplaceInd(i, v)
replaces the element with index
i
,
in the operation sequence index vector,
with the value
v
.
n
has prototype
size_t n
the syntax
n = rec.TotNumVar()
sets
n
to the number of variables that are in the
operation sequence.
n
has prototype
size_t n
the syntax
n = rec.Memory()
sets
n
to the number of memory units (sizeof
)
required to store the current operation sequence in
rec
.