ArcGIS Procedural Runtime  3.1.9666
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
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

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: