Antares Simulator
Power System Simulator
Antares::Solver::Variable::Economy::detail Namespace Reference

Internal helpers for template metaprogramming. More...

Variables

template<class VCard , class Next , int CDataLevel, int CFile>
constexpr int StatisticsCount
 Compile-time calculation of statistics count. More...
 

Detailed Description

Internal helpers for template metaprogramming.

Variable Documentation

◆ StatisticsCount

template<class VCard , class Next , int CDataLevel, int CFile>
constexpr int Antares::Solver::Variable::Economy::detail::StatisticsCount
inlineconstexpr
Initial value:
= ((VCard::categoryDataLevel & CDataLevel
&& VCard::categoryFileLevel & CFile)
? (Next::template Statistics<CDataLevel, CFile>::count
+ VCard::columnCount * VCard::ResultsType::count)
: Next::template Statistics<CDataLevel, CFile>::count)

Compile-time calculation of statistics count.

  • This helper computes the number of statistics that will be generated based on the data level and file level filters.
  • Template Parameters
    VCardThe variable card type
    NextThe next variable in the chain
    CDataLevelData level filter
    CFileFile level filter