Public Member Functions | Static Public Member Functions

nsGenericFactory Class Reference

Most factories follow this simple pattern, so why not just use a function pointer for most creation operations? More...

#include <nsGenericFactory.h>

Inheritance diagram for nsGenericFactory:
Collaboration diagram for nsGenericFactory:

List of all members.

Public Member Functions

 nsGenericFactory (const nsModuleComponentInfo *info=NULL)
NS_DECL_ISUPPORTS virtual
NS_DECL_NSICLASSINFO nsresult 
SetComponentInfo (const nsModuleComponentInfo *info)
virtual nsresult GetComponentInfo (const nsModuleComponentInfo **infop)
virtual nsresult CreateInstance (nsISupports *aOuter, REFNSIID aIID, void **aResult)
virtual nsresult LockFactory (PRBool aLock)

Static Public Member Functions

static nsresult Create (nsISupports *outer, const nsIID &aIID, void **aInstancePtr)

Detailed Description

Most factories follow this simple pattern, so why not just use a function pointer for most creation operations?


Constructor & Destructor Documentation

nsGenericFactory::nsGenericFactory ( const nsModuleComponentInfo *  info = NULL  ) 

Member Function Documentation

static nsresult nsGenericFactory::Create ( nsISupports outer,
const nsIID &  aIID,
void **  aInstancePtr 
) [static]
virtual nsresult nsGenericFactory::CreateInstance ( nsISupports aOuter,
REFNSIID  aIID,
void **  aResult 
) [virtual]
virtual nsresult nsGenericFactory::GetComponentInfo ( const nsModuleComponentInfo **  infop  )  [virtual]
virtual nsresult nsGenericFactory::LockFactory ( PRBool  aLock  )  [virtual]
NS_DECL_ISUPPORTS virtual NS_DECL_NSICLASSINFO nsresult nsGenericFactory::SetComponentInfo ( const nsModuleComponentInfo *  info  )  [virtual]

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