ug4
ug::Provider< TClass > Class Template Reference

Provider, holding a single instance of an object. More...

#include <provider.h>

Public Types

typedef TClass Type
 type of provided object More...
 

Static Public Member Functions

static TClass & get ()
 returns a singleton based on the identifier More...
 

Detailed Description

template<typename TClass>
class ug::Provider< TClass >

Provider, holding a single instance of an object.

This class is used to wrap an object into a singleton-like provider, such that construction computations is avoided, if the object is used several times.

Member Typedef Documentation

◆ Type

template<typename TClass >
typedef TClass ug::Provider< TClass >::Type

type of provided object

Member Function Documentation

◆ get()

template<typename TClass >
static TClass& ug::Provider< TClass >::get ( )
inlinestatic

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