ArcGIS Procedural Runtime  3.2.10650
List of all members | Static Public Member Functions | Protected Member Functions
prtx::Singleton< S > Class Template Reference

#include <Singleton.h>

Static Public Member Functions

static S * createInstance ()
 
static S * instance ()
 

Protected Member Functions

Singletonoperator= (const Singleton &)=delete
 
 Singleton (const Singleton &)=delete
 

Detailed Description

template<typename S>
class prtx::Singleton< S >

Singleton helper template typically used by subclasses of ExtensionFactory. This class uses the static mix-in pattern (a.k.a. CRTP) to let subclasses implement their own singleton creation in createInstance. See EncoderFactory for a usage example.

See also
EncoderFactory

Member Function Documentation

◆ createInstance()

template<typename S >
static S* prtx::Singleton< S >::createInstance ( )
static

Subclasses must implement this static member function to create the factory singletons.

Returns
The single instance of factory class S.

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