geopm  3.1.1.dev272+gdfb40a8d
GEOPM - Global Extensible Open Power Manager
Public Member Functions | Public Attributes | List of all members
geopm::CombinedSignal Class Reference

Used by PlatformIO to define a signal as a function of other signals. More...

#include <CombinedSignal.hpp>

Public Member Functions

 CombinedSignal ()
 
 CombinedSignal (std::function< double(const std::vector< double > &)>)
 
virtual ~CombinedSignal ()=default
 
virtual double sample (const std::vector< double > &values)
 Sample all required signals and aggregate values to produce the combined signal. More...
 

Public Attributes

std::function< double(const std::vector< double > &)> m_agg_function
 

Detailed Description

Used by PlatformIO to define a signal as a function of other signals.

Constructor & Destructor Documentation

◆ CombinedSignal() [1/2]

geopm::CombinedSignal::CombinedSignal ( )

◆ CombinedSignal() [2/2]

geopm::CombinedSignal::CombinedSignal ( std::function< double(const std::vector< double > &)>  func)

◆ ~CombinedSignal()

virtual geopm::CombinedSignal::~CombinedSignal ( )
virtualdefault

Member Function Documentation

◆ sample()

double geopm::CombinedSignal::sample ( const std::vector< double > &  values)
virtual

Sample all required signals and aggregate values to produce the combined signal.

Member Data Documentation

◆ m_agg_function

std::function<double(const std::vector<double> &)> geopm::CombinedSignal::m_agg_function

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