CppAD: A C++ Algorithmic Differentiation Package  20130102
recorder< Base > Class Template Reference

Class used to store an operation sequence while it is being recorded (the operation sequence is copied to the player class for playback). More...

List of all members.

Public Member Functions

 recorder (void)
 Default constructor.
 ~recorder (void)
 Destructor.
void free (void)
 Frees 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 (addr_t arg0)
 Put one operation argument index in the recording.
void PutArg (addr_t arg0, addr_t arg1)
 Put two operation argument index in the recording.
void PutArg (addr_t arg0, addr_t arg1, addr_t arg2)
 Put three operation argument index in the recording.
void PutArg (addr_t arg0, addr_t arg1, addr_t arg2, addr_t arg3)
 Put four operation argument index in the recording.
void PutArg (addr_t arg0, addr_t arg1, addr_t arg2, addr_t arg3, addr_t arg4)
 Put five operation argument index in the recording.
void PutArg (addr_t arg0, addr_t arg1, addr_t arg2, addr_t arg3, addr_t arg4, addr_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

const size_t thread_offset_
 offset for this thread in the static hash table
size_t num_rec_var_
 Number of variables in the recording.
pod_vector< CPPAD_OP_CODE_TYPErec_op_
 The operators in the recording.
pod_vector< addr_t > rec_vecad_ind_
 The VecAD indices in the recording.
pod_vector< addr_t > rec_op_arg_
 The argument indices in the recording.
pod_vector< Base > rec_par_
 The parameters in the recording. Note that Base may not be plain old data, so use false in consructor.
pod_vector< char > rec_text_
 Character strings ('\0' terminated) in the recording.

Friends

class player< Base >

Detailed Description

template<class Base>
class recorder< Base >

Class used to store an operation sequence while it is being recorded (the operation sequence is copied to the player class for playback).

Template Parameters:
BaseThis is an AD< Base > operation sequence recording; i.e., it records operations of type AD< Base >.

Definition at line 34 of file recorder.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines