CppADCodeGen 2.4.3
A C++ Algorithmic Differentiation Package with Source Code Generation
Loading...
Searching...
No Matches
CppAD::cg::SmartListPointer< Base > Class Template Reference

#include <smart_containers.hpp>

Collaboration diagram for CppAD::cg::SmartListPointer< Base >:
Collaboration graph

Public Types

using iterator = typename std::list< Base * >::iterator
 
using const_iterator = typename std::list< Base * >::const_iterator
 

Public Member Functions

 SmartListPointer (const std::set< Base * > &l_)
 
size_t size () const
 
bool empty () const
 
void push_front (Base *x)
 
void pop_front ()
 
void push_back (Base *x)
 
void pop_back ()
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
std::list< Base * > release ()
 

Public Attributes

std::list< Base * > l
 

Detailed Description

template<class Base>
class CppAD::cg::SmartListPointer< Base >

Smart set of pointers. Deletes all set values on destruction.

Definition at line 178 of file smart_containers.hpp.

Member Typedef Documentation

◆ const_iterator

template<class Base >
using CppAD::cg::SmartListPointer< Base >::const_iterator = typename std::list<Base*>::const_iterator

Definition at line 181 of file smart_containers.hpp.

◆ iterator

template<class Base >
using CppAD::cg::SmartListPointer< Base >::iterator = typename std::list<Base*>::iterator

Definition at line 180 of file smart_containers.hpp.

Constructor & Destructor Documentation

◆ SmartListPointer() [1/2]

template<class Base >
CppAD::cg::SmartListPointer< Base >::SmartListPointer ( )
inline

Definition at line 184 of file smart_containers.hpp.

◆ SmartListPointer() [2/2]

template<class Base >
CppAD::cg::SmartListPointer< Base >::SmartListPointer ( const std::set< Base * > &  l_)
inline

Definition at line 187 of file smart_containers.hpp.

◆ ~SmartListPointer()

template<class Base >
virtual CppAD::cg::SmartListPointer< Base >::~SmartListPointer ( )
inlinevirtual

Definition at line 237 of file smart_containers.hpp.

Member Function Documentation

◆ begin() [1/2]

template<class Base >
iterator CppAD::cg::SmartListPointer< Base >::begin ( )
inline

Definition at line 215 of file smart_containers.hpp.

◆ begin() [2/2]

template<class Base >
const_iterator CppAD::cg::SmartListPointer< Base >::begin ( ) const
inline

Definition at line 219 of file smart_containers.hpp.

◆ empty()

template<class Base >
bool CppAD::cg::SmartListPointer< Base >::empty ( ) const
inline

Definition at line 195 of file smart_containers.hpp.

◆ end() [1/2]

template<class Base >
iterator CppAD::cg::SmartListPointer< Base >::end ( )
inline

Definition at line 223 of file smart_containers.hpp.

◆ end() [2/2]

template<class Base >
const_iterator CppAD::cg::SmartListPointer< Base >::end ( ) const
inline

Definition at line 227 of file smart_containers.hpp.

◆ pop_back()

template<class Base >
void CppAD::cg::SmartListPointer< Base >::pop_back ( )
inline

Definition at line 211 of file smart_containers.hpp.

◆ pop_front()

template<class Base >
void CppAD::cg::SmartListPointer< Base >::pop_front ( )
inline

Definition at line 203 of file smart_containers.hpp.

◆ push_back()

template<class Base >
void CppAD::cg::SmartListPointer< Base >::push_back ( Base *  x)
inline

Definition at line 207 of file smart_containers.hpp.

◆ push_front()

template<class Base >
void CppAD::cg::SmartListPointer< Base >::push_front ( Base *  x)
inline

Definition at line 199 of file smart_containers.hpp.

◆ release()

template<class Base >
std::list< Base * > CppAD::cg::SmartListPointer< Base >::release ( )
inline

Definition at line 231 of file smart_containers.hpp.

◆ size()

template<class Base >
size_t CppAD::cg::SmartListPointer< Base >::size ( ) const
inline

Definition at line 191 of file smart_containers.hpp.

Member Data Documentation

◆ l

template<class Base >
std::list<Base*> CppAD::cg::SmartListPointer< Base >::l

Definition at line 182 of file smart_containers.hpp.


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