paludis Version 3.0.2
The one true package mangler
paludis::Singleton< OurType_ > Class Template Reference

#include <singleton.hh>

Friends

class DeleteOnDestruction

Basic operations

 Singleton (const Singleton &)=delete
const Singleton & operator= (const Singleton &)=delete

Singleton operations

static OurType_ * get_instance () PALUDIS_ATTRIBUTE((warn_unused_result))
static void destroy_instance ()

Detailed Description

template<typename OurType_>
class paludis::Singleton< OurType_ >

Singletons have a single instance and are created when first used.

Member Function Documentation

◆ destroy_instance()

template<typename OurType_>
void paludis::Singleton< OurType_ >::destroy_instance ( )
static

Destroy our instance.

References destroy_instance().

Referenced by destroy_instance().

◆ get_instance()

template<typename OurType_>
OurType_ * paludis::Singleton< OurType_ >::get_instance ( )
static

Fetch our instance.

References PALUDIS_ATTRIBUTE.


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