tin  1.5.9
tsm::runtime::resource_contract< Runtime, Budget, TimerSlots, Groups > Struct Template Reference

#include <resources.h>

Collaboration diagram for tsm::runtime::resource_contract< Runtime, Budget, TimerSlots, Groups >:
Collaboration graph

Public Types

using resources = runtime_resources< Runtime, TimerSlots, Groups... >
 

Static Public Attributes

static constexpr bool fits = resources::fits_within(Budget)
 

Detailed Description

template<typename Runtime, resource_budget Budget, std::size_t TimerSlots = 0U, typename... Groups>
struct tsm::runtime::resource_contract< Runtime, Budget, TimerSlots, Groups >

Compile-time deployment budget contract for one runtime.

Applications use this type to enforce a resource budget during compilation. Budget is a structural non-type template argument, so it remains part of the type-level configuration.

Member Typedef Documentation

◆ resources

template<typename Runtime , resource_budget Budget, std::size_t TimerSlots = 0U, typename... Groups>
using tsm::runtime::resource_contract< Runtime, Budget, TimerSlots, Groups >::resources = runtime_resources<Runtime, TimerSlots, Groups...>

Member Data Documentation

◆ fits

template<typename Runtime , resource_budget Budget, std::size_t TimerSlots = 0U, typename... Groups>
constexpr bool tsm::runtime::resource_contract< Runtime, Budget, TimerSlots, Groups >::fits = resources::fits_within(Budget)
staticconstexpr

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