CppAD: A C++ Algorithmic Differentiation Package 20110419
template<class Base >
void AD< Base >::tape_delete ( size_t  id_old) [static, private]

Delete the tape, and advance the id number, corresponding to AD<Base> operations for the current thread.

Template Parameters:
Baseis the base type corresponding to AD<Base> operations.
Parameters:
id_oldIs the identifer for the tape that is recording AD<Base> operations for this thread.
thread
Let thread denote the current OpenMP thread number omp_get_thread_num(). If _OPENMP is not defined, thread is zero. It must hold that thread = id_old % CPPAD_MAX_NUM_THREADS.
tape_handle
It is assumed that *tape_handle(thread) != CPPAD_NULL when tape_delete is called; i.e., AD<Base> operations for this thread are being recorded. The destructore for the corresponding tape is called and upon return *tape_handle(thread) == CPPAD_NULL.
tape_id
We use id to denote AD<Base>::tape_id(thread). Upon the call to tape_delete, *id == id_old. Upon the return, *id > id_old and thread = *id % CPPAD_MAX_NUM_THREADS

Definition at line 272 of file tape_link.hpp.