CppAD: A C++ Algorithmic Differentiation Package 20110419
template<class Base >
ADTape< Base > * AD< Base >::tape_ptr ( size_t  id) [inline, static, private]

Get a pointer to tape that records AD<Base> operations for the current thread.

Template Parameters:
Baseis the base type corresponding to AD<Base> operations.
thread
is the index that identifes the current OpenMP thread. If _OPENMP is not defined, thread is zero. 0 <= thread < omp_max_thread(0).
Parameters:
idis the identifier for the tape that is currently recording AD<Base> operations for the current thread. It must hold that thread = id % CPPAD_MAX_NUM_THREADS. Note this routine should be faster when NDEBUG is defined (?) than calling tape_ptr without the id argument.
Returns:
The return value r is a pointer to the tape that records AD<Base> operations for the current thread. If r == CPPAD_NULL, there is no tape currently recording AD<Base> operations for the specified thread.

Definition at line 162 of file tape_link.hpp.