Prev Next player

Playback a CppAD Operation Sequence

Syntax
player<Baseplay

Default Constructors
The default constructor
     player<
Baseplay
creates an empty operation sequence.

Assignment Operator
If rec is
     const recorder &
rec
object, the assignment operation
     
play = rec
copies the operation sequence from the recorder rec to the player play .

Erase
The function call
     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).

GetOp
If 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.

GetInd
If p , n and offset have prototypes
     const size_t *
p
     size_t 
n
     size_t 
offset
The syntax
     
p = play.GetInd(noffset)
returns a pointer to the n the values that start at the specified offset in the operation sequence index vector.

GetPar
If 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.

GetVecInd
If 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.

NumOp
If n has prototype
     size_t 
n
the syntax
     
n = play.NumOp()
sets n to the number of operations in the operation sequence.

NumInd
If n has prototype
     size_t 
n
the syntax
     
n = play.NumInd()
sets n to the number of elements in the operation sequence index vector.

NumPar
If n has prototype
     size_t 
n
the syntax
     
n = play.NumPar()
sets n to the number of parameters in the operation sequence parameter vector.

NumVecInd
If 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.

ReplaceInd
If i and v have prototypes
     size_t 
i
     size_t 
v
the syntax
     
play.ReplaceInd(iv)
replaces the element with index i , in the operation sequence index vector, with the value v .

TotNumVar
If n has prototype
     size_t 
n
the syntax
     
n = rec.TotNumVar()
sets n to the number of variables that are in the operation sequence.

Memory
If 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 .
Input File: cppad/local/player.hpp