ESPHome 2026.4.0-dev
Loading...
Searching...
No Matches
esphome::PreferencesMixin< Derived > Class Template Reference

CRTP mixin providing type-safe template make_preference<T>() helpers. More...

#include <preference_backend.h>

Public Member Functions

template<typename T , enable_if_t< is_trivially_copyable< T >::value, bool > = true>
ESPPreferenceObject make_preference (uint32_t type, bool in_flash)
 
template<typename T , enable_if_t< is_trivially_copyable< T >::value, bool > = true>
ESPPreferenceObject make_preference (uint32_t type)
 

Detailed Description

template<typename Derived>
class esphome::PreferencesMixin< Derived >

CRTP mixin providing type-safe template make_preference<T>() helpers.

Platform preferences classes inherit this to avoid duplicating these templates.

Definition at line 61 of file preference_backend.h.

Member Function Documentation

◆ make_preference() [1/2]

template<typename Derived >
template<typename T , enable_if_t< is_trivially_copyable< T >::value, bool > = true>
ESPPreferenceObject esphome::PreferencesMixin< Derived >::make_preference ( uint32_t type)
inline

Definition at line 69 of file preference_backend.h.

◆ make_preference() [2/2]

template<typename Derived >
template<typename T , enable_if_t< is_trivially_copyable< T >::value, bool > = true>
ESPPreferenceObject esphome::PreferencesMixin< Derived >::make_preference ( uint32_t type,
bool in_flash )
inline

Definition at line 64 of file preference_backend.h.


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