Poco

template < class C, class B >

class MetaSingleton

Library: Foundation
Package: SharedLibrary
Header: Poco/MetaObject.h

Description

A SingletonMetaObject disables the create() method and instead offers an instance() method to access the single instance of its class.

Inheritance

Direct Base Classes: AbstractMetaObject < B >

All Base Classes: AbstractMetaObject < B >

Member Summary

Member Functions: canCreate, create, instance, isAutoDelete

Constructors

MetaSingleton inline

MetaSingleton(
    const char * name
);

Destructor

~MetaSingleton inline

~MetaSingleton();

Member Functions

canCreate inline

bool canCreate() const;

create inline

B * create() const;

instance inline

B & instance() const;

isAutoDelete inline

bool isAutoDelete(
    B * param255
) const;