mpqc::utility::TSPool< Item > Class Template Reference

Documentation

template<typename Item>
class mpqc::utility::TSPool< Item >

A pool of thread-specific objects.

Public Member Functions

 TSPool ()=delete
 Don't allow copies or default initialization. More...
 
 TSPool (TSPool const &)=delete
 
TSPooloperator= (TSPool const &)=delete
 
TSPooloperator= (TSPool &&)=default
 
 TSPool (TSPool &&a)=default
 
 TSPool (Item e)
 Initializes the pool with a single Item. More...
 
Item & local ()
 

Constructor & Destructor Documentation

◆ TSPool() [1/4]

template<typename Item >
mpqc::utility::TSPool< Item >::TSPool ( )
delete

Don't allow copies or default initialization.

◆ TSPool() [2/4]

template<typename Item >
mpqc::utility::TSPool< Item >::TSPool ( TSPool< Item > const &  )
delete

◆ TSPool() [3/4]

template<typename Item >
mpqc::utility::TSPool< Item >::TSPool ( TSPool< Item > &&  a)
default

◆ TSPool() [4/4]

template<typename Item >
mpqc::utility::TSPool< Item >::TSPool ( Item  e)
inlineexplicit

Initializes the pool with a single Item.

Member Function Documentation

◆ local()

template<typename Item >
Item& mpqc::utility::TSPool< Item >::local ( )
inline
Returns
reference to the thread-local Item instance.

◆ operator=() [1/2]

template<typename Item >
TSPool& mpqc::utility::TSPool< Item >::operator= ( TSPool< Item > &&  )
default

◆ operator=() [2/2]

template<typename Item >
TSPool& mpqc::utility::TSPool< Item >::operator= ( TSPool< Item > const &  )
delete

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