ViennaSHE 1.3.0
Free open-source semiconductor device simulator using spherical harmonics expansions techniques.
viennashe::util::filtered_functor< FilterType, FunctorType > Class Template Reference

A compound functor which applies the provided functor only to the argument if the supplied filter evaluates to true. More...

#include <misc.hpp>

Public Member Functions

 filtered_functor (FilterType const &fil, FunctorType &fun)
 
template<typename T >
void operator() (T const &t)
 
template<typename T >
void operator() (T &t)
 

Detailed Description

template<typename FilterType, typename FunctorType>
class viennashe::util::filtered_functor< FilterType, FunctorType >

A compound functor which applies the provided functor only to the argument if the supplied filter evaluates to true.

Template Parameters
FilterTypeType of the filter functor. Needs to return 'true' if the action functor should be applied to the element
FunctorTypeThe action functor operating on the supplied argument.

Definition at line 148 of file misc.hpp.

Constructor & Destructor Documentation

◆ filtered_functor()

template<typename FilterType , typename FunctorType >
viennashe::util::filtered_functor< FilterType, FunctorType >::filtered_functor ( FilterType const &  fil,
FunctorType &  fun 
)
inline

Definition at line 151 of file misc.hpp.

Member Function Documentation

◆ operator()() [1/2]

template<typename FilterType , typename FunctorType >
template<typename T >
void viennashe::util::filtered_functor< FilterType, FunctorType >::operator() ( T &  t)
inline

Definition at line 161 of file misc.hpp.

◆ operator()() [2/2]

template<typename FilterType , typename FunctorType >
template<typename T >
void viennashe::util::filtered_functor< FilterType, FunctorType >::operator() ( T const &  t)
inline

Definition at line 154 of file misc.hpp.


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