C++QEDCore  v2 Milestone 10
a framework for simulating open quantum dynamics – core
structure::ElementAveraged< RANK, IS_TIME_DEPENDENT > Class Template Reference

An implementation of Averaged for the case when the number of quantum arevages is known @ compile time (which is very often the case with elements)… More...

#include <ElementAveraged.h>

+ Inheritance diagram for structure::ElementAveraged< RANK, IS_TIME_DEPENDENT >:
+ Collaboration diagram for structure::ElementAveraged< RANK, IS_TIME_DEPENDENT >:

Public Types

typedef AveragedCommon::Averages Averages
 
- Public Types inherited from structure::ElementLiouvilleanAveragedCommon< AveragedTimeDependenceDispatched< RANK, IS_TIME_DEPENDENT > >
typedef cpputils::KeyPrinter::KeyLabels KeyLabels
 
typedef cpputils::KeyPrinter::KeyLabelsInitializer KeyLabelsInitializer
 
- Public Types inherited from structure::AveragedTimeDependenceDispatched< RANK, IS_TIME_DEPENDENT >
typedef Averaged< RANK >::Averages Averages
 
typedef Averaged< RANK >::LazyDensityOperator LazyDensityOperator
 
typedef time::DispatcherIsTimeDependent< IS_TIME_DEPENDENT >::type Time
 
- Public Types inherited from structure::Averaged< RANK >
typedef boost::shared_ptr< const AveragedPtr
 
typedef AveragedCommon::Averages Averages
 
typedef quantumdata::LazyDensityOperator< RANK > LazyDensityOperator
 
- Public Types inherited from quantumdata::Types< RANK, LiouvilleanAveragedCommonRanked< RANK > >
typedef CArray< RANK > StateVectorLow
 
typedef CArray< 2 *RANK > DensityOperatorLow
 
- Public Types inherited from structure::AveragedCommon
typedef boost::shared_ptr< const AveragedCommonPtr
 
typedef LiouvilleanAveragedCommon::DArray1D Averages
 The 1D real array storing the calculated quantum averages (perhaps in real-imaginary pairs if a given average is complex).
 

Protected Member Functions

const Averages initializedAverages () const
 
Constructors
template<typename... KeyLabelsPack>
 ElementAveraged (const std::string &keyTitle, KeyLabelsPack &&...keyLabelsPack)
 The number of KeyLabel arguments in the constructors determines the number of calculated averages.
 
 ElementAveraged (const std::string &keyTitle, typename Base::KeyLabelsInitializer il)
 
 
- Protected Member Functions inherited from structure::ElementLiouvilleanAveragedCommon< AveragedTimeDependenceDispatched< RANK, IS_TIME_DEPENDENT > >
 ElementLiouvilleanAveragedCommon (const std::string &keyTitle, KeyLabelsPack &&...keyLabelsPack)
 redirect to cpputils::KeyPrinter More...
 
 ElementLiouvilleanAveragedCommon (const std::string &keyTitle, KeyLabelsInitializer il)
 redirect to cpputils::KeyPrinter More...
 

Additional Inherited Members

- Public Member Functions inherited from structure::ElementLiouvilleanAveragedCommon< AveragedTimeDependenceDispatched< RANK, IS_TIME_DEPENDENT > >
const std::string & getTitle () const
 redirect to cpputils::KeyPrinter
 
const KeyLabels & getLabels () const
 redirect to cpputils::KeyPrinter More...
 
- Public Member Functions inherited from structure::AveragedCommon
void process (Averages &averages) const
 This function is a hook between LiouvilleanAveragedCommonRanked::average and display. More...
 
std::ostream & display (const Averages &averages, std::ostream &os, int precision) const
 Displays the system characteristics in a nicely tabulated format. More...
 
- Static Public Attributes inherited from structure::Averaged< RANK >
static const int N_RANK =RANK
 

Detailed Description

template<int RANK, bool IS_TIME_DEPENDENT>
class structure::ElementAveraged< RANK, IS_TIME_DEPENDENT >

An implementation of Averaged for the case when the number of quantum arevages is known @ compile time (which is very often the case with elements)…

… if this is not the case, Averaged has to be used instead (even for elements).

Template Parameters
RANKarity of the Hilbert space
IS_TIME_DEPENDENTgoverns time dependence

Implements AveragedCommon::display in such a way that the averages stemming from the given element are displayed in a nicely tabulated format

See also
Sec. Implementation of a class representing a harmonic-oscillator mode of the structure-bundle guide for an example of usage

Definition at line 36 of file ElementAveraged.h.


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