C++QEDCore  2.100.2 (v2 Milestone 10 Development branch)
a framework for simulating open quantum dynamics – core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
trajectory::ensemble::Traits< T, T_ELEM > Class Template Reference

Traits class governing how to average up several T_ELEM types into a T type in the most efficient way (which is usually not with the naive addition operator) More...

#include <StochasticTrajectory.h>

Public Types

typedef Ensemble< T, T_ELEM > EnsembleType
 
typedef EnsembleType::Elem Elem
 
typedef EnsembleType::Impl Impl
 
typedef EnsembleType::ToBeAveragedType ToBeAveragedType
 

Static Public Member Functions

static const ToBeAveragedType averageInRange (typename Impl::const_iterator, typename Impl::const_iterator, const EnsembleType &)
 

Detailed Description

template<typename T, typename T_ELEM>
class trajectory::ensemble::Traits< T, T_ELEM >

Traits class governing how to average up several T_ELEM types into a T type in the most efficient way (which is usually not with the naive addition operator)

Template Parameters
Tthe to-be-averaged type of the ensemble
T_ELEMthe to-be-averaged type of the underlying Averageable instances

A generic (naive) implementation is provided for the traits class right away. It assumes that T_ELEM is additive and dividable by a double, and that it can be converted into a T.

Definition at line 205 of file StochasticTrajectory.h.


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