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

Pointer for the tape for this AD<Base> class and the specified tape identifier.

Template Parameters:
Baseis the base type corresponding to AD<Base> operations.
Parameters:
tape_idis the identifier for the tape that is currently recording AD<Base> operations for the current thread. It must hold that the current thread is
     thread = size_t( tape_id % CPPAD_MAX_NUM_THREADS )
and that there is a tape recording AD<Base> operations for this thread. If this is not the currently executing thread, a variable from a different thread is being recorded on the tape for this thread which is a user error.
Returns:
is a pointer to the tape that is currently recording AD<Base> operations for the current thread (and it is not CPPAD_NULL).
Restrictions
This routine should only be called if there is a tape recording operaitons for the specified thread.

Definition at line 167 of file tape_link.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines