![]() |
ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
#include "actor/traits.hpp"#include <functional>#include <memory>#include <optional>#include <string>#include <type_traits>#include <variant>Go to the source code of this file.
Classes | |
| struct | GetActorByType< Actor > |
| Get an actor of a specific type, recursively. More... | |
| struct | HasActorOfType< Actor > |
| Check if an actor of a specific type is active, recursively. More... | |
Functions | |
| template<typename Actor, typename Variant> | |
| std::shared_ptr< Actor > | get_actor_by_type (Variant const &variant) |
| Get an active actor of a specific type, recursively. | |
| template<typename Actor, typename Variant> | |
| std::shared_ptr< Actor > | get_actor_by_type (std::optional< Variant > const &optional) |
| template<typename Actor, typename Variant> | |
| auto | has_actor_of_type (Variant const &variant) |
| Check if an actor of a specific type is active, recursively. | |
| template<typename Actor, typename Variant> | |
| auto | has_actor_of_type (std::optional< Variant > const &optional) |
| std::shared_ptr< Actor > get_actor_by_type | ( | std::optional< Variant > const & | optional | ) |
Definition at line 52 of file visitors.hpp.
References get_actor_by_type().
| std::shared_ptr< Actor > get_actor_by_type | ( | Variant const & | variant | ) |
Get an active actor of a specific type, recursively.
Definition at line 46 of file visitors.hpp.
Referenced by Dipoles::Solver::cutoff(), get_actor_by_type(), CoulombP3MImpl< FloatType, Architecture, FFTConfig >::init_cpu_kernels(), CoulombTuningAlgorithm< FloatType, Architecture, FFTConfig >::layer_correction_veto_r_cut(), and Dipoles::Solver::on_observable_calc().
| auto has_actor_of_type | ( | std::optional< Variant > const & | optional | ) |
Definition at line 76 of file visitors.hpp.
References has_actor_of_type().
| auto has_actor_of_type | ( | Variant const & | variant | ) |
Check if an actor of a specific type is active, recursively.
Definition at line 71 of file visitors.hpp.
Referenced by CoulombTuningAlgorithm< FloatType, Architecture, FFTConfig >::get_time(), has_actor_of_type(), CoulombP3MImpl< FloatType, Architecture, FFTConfig >::init_gpu_kernels(), and CoulombP3MImpl< FloatType, Architecture, FFTConfig >::long_range_kernel().