REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
Loading...
Searching...
No Matches
utils::Singleton< T > Class Template Reference

This is a standard way of defining singletons, Usage is like: More...

#include <singleton.h>

Static Public Member Functions

static T & get ()
 

Detailed Description

template<class T>
class utils::Singleton< T >

This is a standard way of defining singletons, Usage is like:

class Foo : Singleton<Foo> { ... }

The only advantage of having this kind of class is that it simplifies finding Singletons in the code base.

This is a CRTP pattern.

Definition at line 20 of file singleton.h.

Member Function Documentation

◆ get()

template<class T >
static T & utils::Singleton< T >::get ( )
inlinestatic

Definition at line 22 of file singleton.h.


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