CppADCodeGen  HEAD
A C++ Algorithmic Differentiation Package with Source Code Generation
CppAD::cg::CodeHandler< Base >::LoopData Struct Reference
Collaboration diagram for CppAD::cg::CodeHandler< Base >::LoopData:
Collaboration graph

Public Member Functions

void prepare4NewSourceGen ()
 
void reset ()
 
const std::string * getLoopName (size_t id) const
 
void registerModel (LoopModel< Base > &loop)
 
LoopModel< Base > * getLoop (size_t loopId) const
 
size_t addDependentIndexPattern (IndexPattern &jacPattern)
 
void manageDependentIndexPattern (const IndexPattern *pattern)
 
size_t addIndependentIndexPattern (IndexPattern &pattern, size_t hint)
 
void addLoopEndNode (Node &node)
 

Public Attributes

std::map< size_t, LoopModel< Base > * > loopModels
 
std::vector< LoopEndOperationNode< Base > * > endNodes
 
std::set< const Node * > indexes
 
std::set< RandomIndexPattern * > indexRandomPatterns
 
std::vector< IndexPattern * > dependentIndexPatterns
 
std::vector< const IndexPattern * > dependentIndexPatternManaged
 
std::vector< IndexPattern * > independentIndexPatterns
 
std::vector< std::set< Node * > > outerVars
 
int depth
 
std::vector< size_t > startEvalOrder
 

Detailed Description

template<class Base>
struct CppAD::cg::CodeHandler< Base >::LoopData

Definition at line 840 of file code_handler.hpp.

Member Function Documentation

◆ getLoopName()

template<class Base >
const std::string * CppAD::cg::CodeHandler< Base >::LoopData::getLoopName ( size_t  id) const
inline

Provides the name used by a loop atomic function with a given ID.

Parameters
idthe atomic function ID.
Returns
a pointer to the atomic loop function name if it was registered, nullptr otherwise

Definition at line 75 of file code_handler_loops.hpp.


The documentation for this struct was generated from the following files: