|
CppAD: A C++ Algorithmic Differentiation Package 20110419
|
Class used to store an operation sequence while it is being recorded (the operation sequence is copied to the player class for playback). More...
Public Member Functions | |
| recorder (void) | |
| Default constructor. | |
| ~recorder (void) | |
| Destructor. | |
| void | Erase (void) |
| Erase all information in recording. | |
| size_t | PutOp (OpCode op) |
| Start recording the next operator in the operation sequence. | |
| size_t | PutVecInd (size_t vec_ind) |
| Add a value to the end of the current vector of VecAD indices. | |
| size_t | PutPar (const Base &par) |
| Find or add a parameter to the current vector of parameters. | |
| void | PutArg (size_t arg0) |
| Put one operation argument index in the recording. | |
| void | PutArg (size_t arg0, size_t arg1) |
| Put two operation argument index in the recording. | |
| void | PutArg (size_t arg0, size_t arg1, size_t arg2) |
| Put three operation argument index in the recording. | |
| void | PutArg (size_t arg0, size_t arg1, size_t arg2, size_t arg3) |
| Put four operation argument index in the recording. | |
| void | PutArg (size_t arg0, size_t arg1, size_t arg2, size_t arg3, size_t arg4) |
| Put five operation argument index in the recording. | |
| void | PutArg (size_t arg0, size_t arg1, size_t arg2, size_t arg3, size_t arg4, size_t arg5) |
| Put six operation argument index in the recording. | |
| size_t | PutTxt (const char *text) |
| Put a character string in the text for this recording. | |
| size_t | num_rec_var (void) const |
| Number of variables currently stored in the recording. | |
| size_t | Memory (void) const |
| Approximate amount of memory used by the recording. | |
Private Attributes | |
| size_t | num_rec_var_ |
| Number of variables in the recording. | |
| size_t | len_rec_op_ |
| Length of the operation vector rec_op_. | |
| size_t | num_rec_op_ |
| Number of operators currently in the recording. | |
| OpCode * | rec_op_ |
| The operators in the recording. | |
| size_t | len_rec_vecad_ind_ |
| Length of the VecAD index vector rec_vecad_ind_. | |
| size_t | num_rec_vecad_ind_ |
| Number of VecAD indices currently in the recording. | |
| size_t * | rec_vecad_ind_ |
| The VecAD indices in the recording. | |
| size_t | len_rec_op_arg_ |
| Length of operation argument index vector rec_op_arg_. | |
| size_t | num_rec_op_arg_ |
| Number of operation arguments indices currently in the recording. | |
| size_t * | rec_op_arg_ |
| The argument indices in the recording. | |
| size_t | len_rec_par_ |
| Length of parameter vector rec_par_. | |
| size_t | num_rec_par_ |
| Number of parameters currently in the recording. | |
| Base * | rec_par_ |
| The parameters in the recording. | |
| size_t | len_rec_text_ |
| Length of text character vector rec_text_. | |
| size_t | num_rec_text_ |
| Number of text characters currently in recording. | |
| char * | rec_text_ |
| Character strings ('\0' terminated) in the recording. | |
Friends | |
| class | player< Base > |
Class used to store an operation sequence while it is being recorded (the operation sequence is copied to the player class for playback).
| Base | This is an AD< Base > operation sequence recording; i.e., it records operations of type AD< Base >. |
Definition at line 31 of file recorder.hpp.