idol
A C++ Framework for Optimization
Loading...
Searching...
No Matches
idol::GeneratorPool< KeyT, ValueT > Class Template Reference
Collaboration diagram for idol::GeneratorPool< KeyT, ValueT >:
Collaboration graph

Public Types

using Values = IteratorForward< std::list< std::pair< KeyT, ValueT > > >
 
using ConstValues = ConstIteratorForward< std::list< std::pair< KeyT, ValueT > > >
 

Public Member Functions

void add (KeyT t_key, ValueT t_value)
 
std::list< std::pair< KeyT, ValueT > >::iterator erase (const typename std::list< std::pair< KeyT, ValueT > >::iterator &t_it)
 
const ValueT & last_inserted () const
 
void clear ()
 
unsigned int size () const
 
Values values ()
 
ConstValues values () const
 

Detailed Description

template<class KeyT, class ValueT = idol::PrimalPoint>
class idol::GeneratorPool< KeyT, ValueT >

Definition at line 16 of file GeneratorPool.h.

Member Typedef Documentation

◆ ConstValues

template<class KeyT , class ValueT = idol::PrimalPoint>
using idol::GeneratorPool< KeyT, ValueT >::ConstValues = ConstIteratorForward<std::list<std::pair<KeyT, ValueT> >>

Definition at line 34 of file GeneratorPool.h.

◆ Values

template<class KeyT , class ValueT = idol::PrimalPoint>
using idol::GeneratorPool< KeyT, ValueT >::Values = IteratorForward<std::list<std::pair<KeyT, ValueT> >>

Definition at line 33 of file GeneratorPool.h.

Member Function Documentation

◆ add()

template<class KeyT , class ValueT = idol::PrimalPoint>
void idol::GeneratorPool< KeyT, ValueT >::add ( KeyT  t_key,
ValueT  t_value 
)
inline

Definition at line 19 of file GeneratorPool.h.

◆ clear()

template<class KeyT , class ValueT = idol::PrimalPoint>
void idol::GeneratorPool< KeyT, ValueT >::clear ( )
inline

Definition at line 29 of file GeneratorPool.h.

◆ erase()

template<class KeyT , class ValueT = idol::PrimalPoint>
std::list< std::pair< KeyT, ValueT > >::iterator idol::GeneratorPool< KeyT, ValueT >::erase ( const typename std::list< std::pair< KeyT, ValueT > >::iterator &  t_it)
inline

Definition at line 23 of file GeneratorPool.h.

◆ last_inserted()

template<class KeyT , class ValueT = idol::PrimalPoint>
const ValueT & idol::GeneratorPool< KeyT, ValueT >::last_inserted ( ) const
inline

Definition at line 27 of file GeneratorPool.h.

◆ size()

template<class KeyT , class ValueT = idol::PrimalPoint>
unsigned int idol::GeneratorPool< KeyT, ValueT >::size ( ) const
inline

Definition at line 31 of file GeneratorPool.h.

◆ values() [1/2]

template<class KeyT , class ValueT = idol::PrimalPoint>
Values idol::GeneratorPool< KeyT, ValueT >::values ( )
inline

Definition at line 36 of file GeneratorPool.h.

◆ values() [2/2]

template<class KeyT , class ValueT = idol::PrimalPoint>
ConstValues idol::GeneratorPool< KeyT, ValueT >::values ( ) const
inline

Definition at line 37 of file GeneratorPool.h.