Logo Search packages:      
Sourcecode: xulrunner-1.9 version File versions

nsCategoryCache< T > Class Template Reference

#include <nsCategoryCache.h>

Inheritance diagram for nsCategoryCache< T >:

List of all members.

Detailed Description

template<class T>
class nsCategoryCache< T >

This is a helper class that caches services that are registered in a certain category. The intended usage is that a service stores a variable of type nsCategoryCache<nsIFoo> in a member variable, where nsIFoo is the interface that these services should implement. The constructor of this class should then get the name of the category.

Definition at line 89 of file nsCategoryCache.h.

Public Member Functions

const nsCOMArray< T > & GetEntries ()
 nsCategoryCache (const char *aCategory)

Protected Member Functions

virtual void CategoryCleared ()
virtual void EntryAdded (const nsCString &aValue)
virtual void EntryRemoved (const nsCString &aValue)

Private Member Functions

 nsCategoryCache (const nsCategoryCache< T > &)

Private Attributes

nsCString mCategoryName
nsCOMArray< T > mEntries
nsRefPtr< nsCategoryObserver > mObserver


class CategoryObserver

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

Generated by  Doxygen 1.6.0   Back to index