|
CppAD: A C++ Algorithmic Differentiation Package
20130918
|
Class used to store and play back an operation sequence recording. More...
Public Member Functions | |
| void | Erase (void) |
| Erase all information in an operation sequence player. | |
| void | forward_cskip (OpCode &op, const addr_t *&op_arg, size_t &op_index, size_t &var_index) |
Correct forward_next return values when op == CSkipOp. | |
| void | forward_csum (OpCode &op, const addr_t *&op_arg, size_t &op_index, size_t &var_index) |
Correct forward_next return values when op == CSumOp. | |
| void | forward_next (OpCode &op, const addr_t *&op_arg, size_t &op_index, size_t &var_index) |
| Fetch the next operator during a forward sweep. | |
| void | forward_start (OpCode &op, const addr_t *&op_arg, size_t &op_index, size_t &var_index) |
| Start a play back of the recording during a forward sweep. | |
| void | get (recorder< Base > &rec) |
| Moving an operation sequence from a recorder to a player. | |
| OpCode | GetOp (size_t i) const |
| Old method of fetching an operator from the recording. | |
| Base | GetPar (size_t i) const |
| Fetch a parameter from the recording. | |
| const Base * | GetPar (void) const |
| Fetch entire parameter vector from the recording. | |
| const char * | GetTxt (size_t i) const |
| Fetch a '\0' terminated string from the recording. | |
| size_t | GetVecInd (size_t i) const |
| Fetch a VecAD index from the recording. | |
| size_t | Memory (void) const |
| Fetch a rough measure of amount of memory used to store recording (just lengths, not capacities). | |
| size_t | num_load_op_rec (void) const |
| Fetch number of vecad load operations. | |
| size_t | num_op_arg_rec (void) const |
| Fetch number of argument indices in the recording. | |
| size_t | num_op_rec (void) const |
| Fetch number of operators in the recording. | |
| size_t | num_par_rec (void) const |
| Fetch number of parameters in the recording. | |
| size_t | num_text_rec (void) const |
| Fetch number of characters (representing strings) in the recording. | |
| size_t | num_var_rec (void) const |
| Fetch number of variables in the recording. | |
| size_t | num_vec_ind_rec (void) const |
| Fetch number of VecAD indices in the recording. | |
| size_t | num_vecad_vec_rec (void) const |
| Fetch number of VecAD vectors in the recording. | |
| void | operator= (const player &play) |
| Copying an operation sequence from one player to another. | |
| player (void) | |
| Default constructor. | |
| void | reverse_cskip (OpCode &op, const addr_t *&op_arg, size_t &op_index, size_t &var_index) |
Correct reverse_next return values when op == CSkipOp. | |
| void | reverse_csum (OpCode &op, const addr_t *&op_arg, size_t &op_index, size_t &var_index) |
Correct reverse_next return values when op == CSumOp. | |
| void | reverse_next (OpCode &op, const addr_t *&op_arg, size_t &op_index, size_t &var_index) |
| Fetch the next operator during a reverse sweep. | |
| void | reverse_start (OpCode &op, const addr_t *&op_arg, size_t &op_index, size_t &var_index) |
| Start a play back of the recording during a reverse sweep. | |
| ~player (void) | |
| Destructor. | |
Private Attributes | |
| size_t | num_load_op_rec_ |
| number of vecad load opeations in the reconding | |
| size_t | num_var_rec_ |
| Number of variables in the recording. | |
| size_t | num_vecad_vec_rec_ |
| Number of VecAD vectors in the recording. | |
| OpCode | op_ |
| Current operator. | |
| const addr_t * | op_arg_ |
| Current offset of the argument indices in op_arg_rec_. | |
| pod_vector< addr_t > | op_arg_rec_ |
| The operation argument indices in the recording. | |
| size_t | op_index_ |
| Index in recording corresponding to current operator. | |
| pod_vector< CPPAD_OP_CODE_TYPE > | op_rec_ |
| The operators in the recording. | |
| pod_vector< Base > | par_rec_ |
| The parameters in the recording. Note that Base may not be plain old data, so use false in consructor. | |
| pod_vector< char > | text_rec_ |
| Character strings ('\0' terminated) in the recording. | |
| size_t | var_index_ |
| Index for primary (last) variable corresponding to current operator. | |
| pod_vector< addr_t > | vecad_ind_rec_ |
| The VecAD indices in the recording. | |
Class used to store and play back an operation sequence recording.
| Base | These were AD< Base > operations when recorded. Operations during playback are done using the type Base . |
Definition at line 31 of file player.hpp.