42#include "../data/position.hpp"
43#include "../io/tapeReaderWriterInterface.hpp"
59 template<
typename T_Real,
typename T_Gradient,
typename T_Identifier,
typename T_Position>
77 template<
typename Type>
80 template<
typename Type>
84 template<
typename Type>
87 template<
typename Type>
91 template<
typename Type>
#define CODI_DD(Type, Default)
Abbreviation for CODI_DECLARE_DEFAULT.
Definition macros.hpp:94
#define CODI_ANY
Used in default declarations of expression templates.
Definition macros.hpp:98
uint8_t ArgumentSize
Type for the number of arguments in statements.
Definition config.h:117
CoDiPack - Code Differentiation Package.
Definition codi.hpp:91
Empty Position with no nested data.
Definition position.hpp:47
Write a tape to a file using a writer from the codi::TapeWriterInterface. When reading a stored tape,...
Definition readWriteTapeInterface.hpp:60
T_Gradient Gradient
See ReadWriteTapeInterface.
Definition readWriteTapeInterface.hpp:63
std::unique_ptr< TapeWriterInterface< Type > > WriterInterfaceUniquePtr
Unique pointer to writer.
Definition readWriteTapeInterface.hpp:70
T_Real Real
See ReadWriteTapeInterface.
Definition readWriteTapeInterface.hpp:62
void writeTape(WriterInterfaceUniquePtr writer)
For full-tape writers using a smart pointer.
void writeTape(WriterInterface &writeToFileRef)
For full-tape writers using a manually generated writers.
void writeTape(WriterInterfaceUniquePtr writer, Position const &start, Position const &end)
For partial-tape writers using a smart pointer.
T_Position Position
See ReadWriteTapeInterface.
Definition readWriteTapeInterface.hpp:65
T_Identifier Identifier
See ReadWriteTapeInterface.
Definition readWriteTapeInterface.hpp:64
void * EvalHandle
See PrimalValueTapeTypes.
Definition readWriteTapeInterface.hpp:68
void createStatementManual(Identifier const &lhsIndex, Real const &lhsValue, Config::ArgumentSize const &nActiveValues, Identifier const *const rhsIdentifiers, Config::ArgumentSize const &nPassiveValues, Real const *const rhsPrimals, Config::ArgumentSize const &nConstants, Real const *const rhsConstant, EvalHandle const &evalHandle)
void writeTape(WriterInterface &writeToFileRef, Position const &start, Position const &end)
For partial-tape writers using a manually generated writers.
int Type
Provided by the template arguments in the writeTape methods.
Definition readWriteTapeInterface.hpp:67
void createStatementManual(Real const &lhsValue, Identifier &lhsIndex, Config::ArgumentSize const &size, Real const *jacobians, Identifier const *rhsIdentifiers)
void writeTape(WriterInterface *writer, Position const &start, Position const &end)
For full or partial tapes using a pointer to the writer.
The interface used by all the tape writers. The tape writers are used to generate text,...
Definition tapeReaderWriterInterface.hpp:128