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 69 of file visitors.hpp.
std::shared_ptr< Actor > get_actor_by_type | ( | Variant const & | variant | ) |
Get an active actor of a specific type, recursively.
Definition at line 63 of file visitors.hpp.
auto has_actor_of_type | ( | std::optional< Variant > const & | optional | ) |
Definition at line 109 of file visitors.hpp.
auto has_actor_of_type | ( | Variant const & | variant | ) |
Check if an actor of a specific type is active, recursively.
Definition at line 104 of file visitors.hpp.