Free Electron
|
Type-nonspecific base class for factories. More...
Public Member Functions | |
BaseFactory (const String &name) | |
const String & | name (void) const |
Return the factory's type's name. More... | |
const String | verboseName (void) const |
Return the factory's templated name. More... | |
virtual sp< Component > | create (Library *pLibrary, I32 a_factoryIndex) const =0 |
Instantiate a component. More... | |
![]() | |
virtual void | acquire (void) |
Increment the reference count. More... | |
virtual void | acquire (int &rCount) |
Increment the reference count (and get the count) More... | |
virtual void | release (void) |
Decrement the reference count. More... | |
virtual void | abandon (void) |
Decrement the reference count. More... | |
int | count (void) const |
Return the count of references. More... | |
void | setName (const String &) |
void | trackReference (void *pReference, String what) |
void | untrackReference (void *pReference) |
void | registerRegion (void *pT, U32 bytes) |
Private Attributes | |
String | m_name |
String | m_className |
Additional Inherited Members | |
![]() | |
static String | reportTracker (void) |
static U32 | trackerCount (void) |
![]() | |
int | releaseInternal (void) |
Decrement the reference count. More... | |
void | suppressReport (void) |
Type-nonspecific base class for factories.
|
pure virtual |
Instantiate a component.
The implementation type is the business of the derived class.
Implemented in fe::Library::Factory< T >.
|
inline |
Return the factory's type's name.
|
inline |
Return the factory's templated name.