ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
HasActorOfType< Actor > Struct Template Reference

Check if an actor of a specific type is active, recursively. More...

#include <visitors.hpp>

Public Member Functions

template<typename T , std::enable_if_t< is_exact_match_v< T > > * = nullptr>
auto operator() (std::shared_ptr< T > const &) const
 
template<typename T , std::enable_if_t< not is_exact_match_v< T > and is_layer_correction_v< T > > * = nullptr>
auto operator() (std::shared_ptr< T > const &obj) const
 
template<typename T , std::enable_if_t< not is_exact_match_v< T > and not is_layer_correction_v< T > > * = nullptr>
auto operator() (std::shared_ptr< T > const &) const
 

Detailed Description

template<typename Actor>
struct HasActorOfType< Actor >

Check if an actor of a specific type is active, recursively.

Definition at line 74 of file visitors.hpp.

Member Function Documentation

◆ operator()() [1/3]

template<typename Actor >
template<typename T , std::enable_if_t< is_exact_match_v< T > > * = nullptr>
auto HasActorOfType< Actor >::operator() ( std::shared_ptr< T > const &  ) const
inline

Definition at line 84 of file visitors.hpp.

◆ operator()() [2/3]

template<typename Actor >
template<typename T , std::enable_if_t< not is_exact_match_v< T > and not is_layer_correction_v< T > > * = nullptr>
auto HasActorOfType< Actor >::operator() ( std::shared_ptr< T > const &  ) const
inline

Definition at line 97 of file visitors.hpp.

◆ operator()() [3/3]

template<typename Actor >
template<typename T , std::enable_if_t< not is_exact_match_v< T > and is_layer_correction_v< T > > * = nullptr>
auto HasActorOfType< Actor >::operator() ( std::shared_ptr< T > const &  obj) const
inline

Definition at line 90 of file visitors.hpp.


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