CppADCodeGen  HEAD
A C++ Algorithmic Differentiation Package with Source Code Generation
CppAD::cg::CodeHandlerVector< Base, T > Class Template Reference
Inheritance diagram for CppAD::cg::CodeHandlerVector< Base, T >:
Inheritance graph
Collaboration diagram for CppAD::cg::CodeHandlerVector< Base, T >:
Collaboration graph

Public Types

using iterator = typename std::vector< T >::iterator
 
using const_iterator = typename std::vector< T >::const_iterator
 
using const_reverse_iterator = typename std::vector< T >::const_reverse_iterator
 
using reverse_iterator = typename std::vector< T >::reverse_iterator
 
using reference = typename std::vector< T >::reference
 
using const_reference = typename std::vector< T >::const_reference
 

Public Member Functions

 CodeHandlerVector (CodeHandler< Base > &handler)
 
 CodeHandlerVector (const CodeHandlerVector &orig)
 
void clear ()
 
void adjustSize ()
 
void adjustSize (const OperationNode< Base > &node)
 
reference get (const OperationNode< Base > &node)
 
const_reference get (const OperationNode< Base > &node) const
 
void set (const OperationNode< Base > &node, const T &val)
 
size_t size () const
 
bool empty () const
 
void fill (const T &v)
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
const_iterator cbegin () const noexcept
 
const_iterator cend () const noexcept
 
const_reverse_iterator crbegin () const noexcept
 
const_reverse_iterator crend () const noexcept
 
reference operator[] (const OperationNode< Base > &node)
 
const_reference operator[] (const OperationNode< Base > &node) const
 
CodeHandler< Base > & getHandler () const
 

Protected Member Functions

void nodesErased (size_t start, size_t end) override
 

Protected Attributes

CodeHandler< Base > * handler_
 

Detailed Description

template<class Base, class T>
class CppAD::cg::CodeHandlerVector< Base, T >

A vector for data associated with operation nodes managed by a code handler.

Author
Joao Leal

Definition at line 71 of file code_handler_vector.hpp.

Member Function Documentation

◆ nodesErased()

template<class Base, class T>
void CppAD::cg::CodeHandlerVector< Base, T >::nodesErased ( size_t  start,
size_t  end 
)
inlineoverrideprotectedvirtual
Parameters
startThe index of the first OperationNode that was deleted
endThe index after the last OperationNode that was deleted

Implements CppAD::cg::CodeHandlerVectorSync< Base >.

Definition at line 215 of file code_handler_vector.hpp.

◆ operator[]()

template<class Base, class T>
reference CppAD::cg::CodeHandlerVector< Base, T >::operator[] ( const OperationNode< Base > &  node)
inline

operators

Definition at line 228 of file code_handler_vector.hpp.


The documentation for this class was generated from the following file: