![]() |
ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
This class implements an interface to the particle_observables library that implements necessary algorithms needed for observables that are based on single particle properties.
More...
#include <PidObservable.hpp>
Inheritance diagram for Observables::ParticleObservable< ObsType >:
Collaboration diagram for Observables::ParticleObservable< ObsType >:Classes | |
| struct | is_map |
| struct | is_map< ParticleObservables::Map< T > > |
Public Member Functions | |
| std::vector< std::size_t > | shape () const override |
| std::vector< double > | evaluate (boost::mpi::communicator const &comm, ParticleReferenceRange const &local_particles, ParticleObservables::traits< Particle > const &) const override |
| PidObservable (std::vector< int > ids) | |
Public Member Functions inherited from Observables::PidObservable | |
| PidObservable (std::vector< int > ids) | |
| std::vector< double > | operator() (boost::mpi::communicator const &comm) const final |
| std::vector< int > const & | ids () const |
Public Member Functions inherited from Observables::Observable | |
| Observable ()=default | |
| virtual | ~Observable ()=default |
| std::size_t | n_values () const |
| Size of the flat array returned by the observable. | |
This class implements an interface to the particle_observables library that implements necessary algorithms needed for observables that are based on single particle properties.
| ObsType | An observables composed of an algorithm from src/particle_observables/include/particle_observables/algorithms.hpp and two particle properties. |
Example usage:
Definition at line 195 of file core/observables/PidObservable.hpp.
|
inlineoverridevirtual |
Implements Observables::PidObservable.
Definition at line 210 of file core/observables/PidObservable.hpp.
References Utils::flatten(), and Observables::PidObservable::ids().
|
inlineexplicit |
Definition at line 64 of file core/observables/PidObservable.hpp.
|
inlineoverridevirtual |
Implements Observables::Observable.
Definition at line 198 of file core/observables/PidObservable.hpp.
References Observables::PidObservable::ids().