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

Get an actor of a specific type, 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 &obj) 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 GetActorByType< Actor >

Get an actor of a specific type, recursively.

Definition at line 33 of file visitors.hpp.

Member Function Documentation

◆ operator()() [1/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 GetActorByType< Actor >::operator() ( std::shared_ptr< T > const &  ) const
inline

Definition at line 56 of file visitors.hpp.

◆ operator()() [2/3]

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

Definition at line 43 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 GetActorByType< Actor >::operator() ( std::shared_ptr< T > const &  obj) const
inline

Definition at line 49 of file visitors.hpp.


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