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

#include <smart_containers.hpp>

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

Public Types

using iterator = typename std::set< Base * >::iterator
 

Public Member Functions

 SmartSetPointer (std::set< Base * > &s_)
 
size_t size () const
 
bool empty () const
 
iterator begin () const
 
iterator end () const
 
std::pair< iterator, bool > insert (Base *x)
 
void erase (iterator pos)
 
size_t erase (Base *x)
 
std::set< Base * > release ()
 

Public Attributes

std::set< Base * > s
 

Detailed Description

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

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

Definition at line 119 of file smart_containers.hpp.

Member Typedef Documentation

◆ iterator

template<class Base >
using CppAD::cg::SmartSetPointer< Base >::iterator = typename std::set<Base*>::iterator

Definition at line 121 of file smart_containers.hpp.

Constructor & Destructor Documentation

◆ SmartSetPointer() [1/2]

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

Definition at line 124 of file smart_containers.hpp.

◆ SmartSetPointer() [2/2]

template<class Base >
CppAD::cg::SmartSetPointer< Base >::SmartSetPointer ( std::set< Base * > &  s_)
inline

Definition at line 127 of file smart_containers.hpp.

◆ ~SmartSetPointer()

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

Definition at line 165 of file smart_containers.hpp.

Member Function Documentation

◆ begin()

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

Definition at line 139 of file smart_containers.hpp.

◆ empty()

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

Definition at line 135 of file smart_containers.hpp.

◆ end()

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

Definition at line 143 of file smart_containers.hpp.

◆ erase() [1/2]

template<class Base >
size_t CppAD::cg::SmartSetPointer< Base >::erase ( Base *  x)
inline

Definition at line 155 of file smart_containers.hpp.

◆ erase() [2/2]

template<class Base >
void CppAD::cg::SmartSetPointer< Base >::erase ( iterator  pos)
inline

Definition at line 151 of file smart_containers.hpp.

◆ insert()

template<class Base >
std::pair< iterator, bool > CppAD::cg::SmartSetPointer< Base >::insert ( Base *  x)
inline

Definition at line 147 of file smart_containers.hpp.

◆ release()

template<class Base >
std::set< Base * > CppAD::cg::SmartSetPointer< Base >::release ( )
inline

Definition at line 159 of file smart_containers.hpp.

◆ size()

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

Definition at line 131 of file smart_containers.hpp.

Member Data Documentation

◆ s

template<class Base >
std::set<Base*> CppAD::cg::SmartSetPointer< Base >::s

Definition at line 122 of file smart_containers.hpp.


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