ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
ParticleObservables::Product< Left, Right > Struct Template Reference

Meta-Observable that returns the product of two other observables. More...

#include <observable.hpp>

+ Inheritance diagram for ParticleObservables::Product< Left, Right >:
+ Collaboration diagram for ParticleObservables::Product< Left, Right >:

Public Member Functions

 Product (Left left={}, Right right={})
 
template<class Particle , class Traits = default_traits<Particle>>
decltype(auto) operator() (Particle const &p, Traits const &traits={}) const
 

Detailed Description

template<class Left, class Right>
struct ParticleObservables::Product< Left, Right >

Meta-Observable that returns the product of two other observables.

The operand observables are stored by privately deriving from them to get the empty case optimization if they do not have state.

Template Parameters
Leftleft operand of the product.
Rightright operand of the product.

Definition at line 37 of file observable.hpp.

Constructor & Destructor Documentation

◆ Product()

template<class Left , class Right >
ParticleObservables::Product< Left, Right >::Product ( Left  left = {},
Right  right = {} 
)
inline

Definition at line 38 of file observable.hpp.

Member Function Documentation

◆ operator()()

template<class Left , class Right >
template<class Particle , class Traits = default_traits<Particle>>
decltype(auto) ParticleObservables::Product< Left, Right >::operator() ( Particle const &  p,
Traits const &  traits = {} 
) const
inline

Definition at line 42 of file observable.hpp.


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