RSeries astromech firmware
Persistent< T, kSignature > Class Template Reference

#include <core/PersistentStorage.h>

Detailed Description

template<typename T, uint16_t kSignature>
class Persistent< T, kSignature >

Template manages persistance of specific type.

Uses a 16-bit signature

Inherits PersistentStorage.

Public Member Functions

 Persistent ()
 
constexpr uint16_t signature ()
 
bool isValid ()
 
T & get (T &t)
 
const T & put (const T &t)
 

Constructor & Destructor Documentation

◆ Persistent()

template<typename T , uint16_t kSignature>
Persistent< T, kSignature >::Persistent ( )
inline

Member Function Documentation

◆ get()

template<typename T , uint16_t kSignature>
T& Persistent< T, kSignature >::get ( T &  t)
inline

◆ isValid()

template<typename T , uint16_t kSignature>
bool Persistent< T, kSignature >::isValid ( )
inline

◆ put()

template<typename T , uint16_t kSignature>
const T& Persistent< T, kSignature >::put ( const T &  t)
inline

◆ signature()

template<typename T , uint16_t kSignature>
constexpr uint16_t Persistent< T, kSignature >::signature ( )
inlineconstexpr

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