C++ Library Extensions 2022.12.09
To help learn modern C++ programming
functor< Type > Class Template Reference

Public Member Functions

 functor (std::set< std::string > &set_threads)
 
 functor (const functor &lhs)
 
 functor (functor &&lhs)
 
void operator() (Type &e) const
 
 ~functor ()
 
 functor (std::set< std::string > &threads)
 
 functor (const functor &rhs)
 
 functor (functor &&rhs)
 
template<typename Type >
void operator() (Type &&e) const
 
 ~functor ()
 

Public Attributes

int m_instance_member
 
std::set< std::string > & threads
 

Static Public Attributes

static thread_local int m_thread_local
 
static std::mutex m_mutex
 

Detailed Description

template<typename Type>
class functor< Type >

Definition at line 49 of file 051-thread_count.cpp.

Constructor & Destructor Documentation

◆ functor() [1/6]

template<typename Type >
functor< Type >::functor ( std::set< std::string > &  set_threads)
inline

Definition at line 59 of file 051-thread_count.cpp.

◆ functor() [2/6]

template<typename Type >
functor< Type >::functor ( const functor< Type > &  lhs)
inline

Definition at line 65 of file 051-thread_count.cpp.

◆ functor() [3/6]

template<typename Type >
functor< Type >::functor ( functor< Type > &&  lhs)
inline

Definition at line 70 of file 051-thread_count.cpp.

◆ ~functor() [1/2]

template<typename Type >
functor< Type >::~functor ( )
inline

Definition at line 86 of file 051-thread_count.cpp.

◆ functor() [4/6]

template<typename Type >
functor< Type >::functor ( std::set< std::string > &  threads)
inline

Definition at line 145 of file 035-parallel_synchronization.cpp.

◆ functor() [5/6]

template<typename Type >
functor< Type >::functor ( const functor< Type > &  rhs)
inline

Definition at line 152 of file 035-parallel_synchronization.cpp.

◆ functor() [6/6]

template<typename Type >
functor< Type >::functor ( functor< Type > &&  rhs)
inline

Definition at line 160 of file 035-parallel_synchronization.cpp.

◆ ~functor() [2/2]

template<typename Type >
functor< Type >::~functor ( )
inline

Definition at line 198 of file 035-parallel_synchronization.cpp.

Member Function Documentation

◆ operator()() [1/2]

template<typename Type >
template<typename Type >
void functor< Type >::operator() ( Type &&  e) const
inline

Definition at line 168 of file 035-parallel_synchronization.cpp.

◆ operator()() [2/2]

template<typename Type >
void functor< Type >::operator() ( Type &  e) const
inline

Definition at line 75 of file 051-thread_count.cpp.

Member Data Documentation

◆ m_instance_member

template<typename Type >
int functor< Type >::m_instance_member

Definition at line 55 of file 051-thread_count.cpp.

◆ m_mutex

template<typename Type >
std::mutex functor< Type >::m_mutex
inlinestatic

Definition at line 53 of file 051-thread_count.cpp.

◆ m_thread_local

template<typename Type >
thread_local int functor< Type >::m_thread_local
inlinestatic

Definition at line 51 of file 051-thread_count.cpp.

◆ threads

template<typename Type >
std::set<std::string>& functor< Type >::threads

Definition at line 57 of file 051-thread_count.cpp.


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