Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Catch::Singleton< SingletonImplT, InterfaceT, MutableInterfaceT > Class Template Reference

#include <catch_singletons.hpp>

Inheritance diagram for Catch::Singleton< SingletonImplT, InterfaceT, MutableInterfaceT >:
Collaboration diagram for Catch::Singleton< SingletonImplT, InterfaceT, MutableInterfaceT >:

Static Public Member Functions

static auto get () -> InterfaceT const &
 
static auto getMutable () -> MutableInterfaceT &
 

Additional Inherited Members

- Public Member Functions inherited from Catch::ISingleton
virtual ~ISingleton ()
 

Detailed Description

template<typename SingletonImplT, typename InterfaceT = SingletonImplT, typename MutableInterfaceT = InterfaceT>
class Catch::Singleton< SingletonImplT, InterfaceT, MutableInterfaceT >

Definition at line 22 of file catch_singletons.hpp.

Member Function Documentation

◆ get()

template<typename SingletonImplT , typename InterfaceT = SingletonImplT, typename MutableInterfaceT = InterfaceT>
static auto Catch::Singleton< SingletonImplT, InterfaceT, MutableInterfaceT >::get ( ) -> InterfaceT const&
inlinestatic

Definition at line 34 of file catch_singletons.hpp.

34 {
35 return *getInternal();
36 }
Here is the caller graph for this function:

◆ getMutable()

template<typename SingletonImplT , typename InterfaceT = SingletonImplT, typename MutableInterfaceT = InterfaceT>
static auto Catch::Singleton< SingletonImplT, InterfaceT, MutableInterfaceT >::getMutable ( ) -> MutableInterfaceT&
inlinestatic

Definition at line 37 of file catch_singletons.hpp.

37 {
38 return *getInternal();
39 }
Here is the caller graph for this function:

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