3-phase PV router
Loading...
Searching...
No Matches
ScheduledBoosts< N, MaxPins > Class Template Reference

The scheduled boosts, as in config.h: each window with the targets it forces. More...

#include <config_types.h>

Inheritance diagram for ScheduledBoosts< N, MaxPins >:
Collaboration diagram for ScheduledBoosts< N, MaxPins >:

Public Member Functions

constexpr ScheduledBoosts (const BoostEntry< MaxPins >(&boosts)[N])
 The boosts, from a list of { window, targets }.
 
constexpr const PinList< MaxPins > & getTargets (const uint8_t i) const
 The targets of boost i, as codes.
 
constexpr BoostWindow getWindow (const uint8_t i) const
 The window of boost i.
 
constexpr uint8_t size () const
 Number of boosts.
 

Private Member Functions

template<uint8_t... I>
constexpr ScheduledBoosts (const BoostEntry< MaxPins >(&boosts)[N], index_sequence< I... >)
 

Private Attributes

const BoostEntry< MaxPins > entries_ [N]
 

Detailed Description

template<uint8_t N, uint8_t MaxPins = 16>
class ScheduledBoosts< N, MaxPins >

The scheduled boosts, as in config.h: each window with the targets it forces.

The targets stay codes here; BoostSchedule (utils_dualtariff.h) holds what they force.

Template Parameters
NNumber of boosts.
MaxPinsMaximum number of targets per boost.

Definition at line 452 of file config_types.h.

Constructor & Destructor Documentation

◆ ScheduledBoosts() [1/2]

template<uint8_t N, uint8_t MaxPins = 16>
ScheduledBoosts< N, MaxPins >::ScheduledBoosts ( const BoostEntry< MaxPins >(&) boosts[N])
inlineconstexpr

The boosts, from a list of { window, targets }.

Definition at line 456 of file config_types.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ScheduledBoosts() [2/2]

template<uint8_t N, uint8_t MaxPins = 16>
template<uint8_t... I>
ScheduledBoosts< N, MaxPins >::ScheduledBoosts ( const BoostEntry< MaxPins >(&) boosts[N],
index_sequence< I... >  )
inlineconstexprprivate

Definition at line 481 of file config_types.h.

Member Function Documentation

◆ getTargets()

template<uint8_t N, uint8_t MaxPins = 16>
const PinList< MaxPins > & ScheduledBoosts< N, MaxPins >::getTargets ( const uint8_t i) const
inlineconstexpr

The targets of boost i, as codes.

Definition at line 474 of file config_types.h.

Here is the caller graph for this function:

◆ getWindow()

template<uint8_t N, uint8_t MaxPins = 16>
BoostWindow ScheduledBoosts< N, MaxPins >::getWindow ( const uint8_t i) const
inlineconstexpr

The window of boost i.

Definition at line 468 of file config_types.h.

Here is the caller graph for this function:

◆ size()

template<uint8_t N, uint8_t MaxPins = 16>
uint8_t ScheduledBoosts< N, MaxPins >::size ( ) const
inlineconstexpr

Number of boosts.

Definition at line 462 of file config_types.h.

Member Data Documentation

◆ entries_

template<uint8_t N, uint8_t MaxPins = 16>
const BoostEntry< MaxPins > ScheduledBoosts< N, MaxPins >::entries_[N]
private

the windows and their targets

Definition at line 486 of file config_types.h.


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