|
CoreLinux++
0.4.32
|
AbstractFactory provides an interface for creating families of related or dependent objects without specifying their concrete classes. More...
#include <AbstractFactory.hpp>
Public Member Functions | |
| AbstractFactory (void) | |
| Default constructor. | |
| AbstractFactory (const AbstractFactory &) | |
| Copy Constructor. More... | |
| virtual | ~AbstractFactory (void) |
| Virtual Destructor. | |
| AbstractFactory & | operator= (const AbstractFactory &) |
| Assignment operator. More... | |
| bool | operator== (const AbstractFactory &aRef) const |
| Equality operator. More... | |
| virtual Count | getCreateCount (void) const =0 |
| Returns the number of total creates for this factory. More... | |
| virtual Count | getDestroyCount (void) const =0 |
| Returns the number of total destroys for this factory. More... | |
| virtual AllocatorPtr | getAllocator (UniqueId) const =0 throw (AllocatorNotFoundException) |
| Retrieve the allocator identified by argument from the implementation. More... | |
| virtual void | addAllocator (UniqueId, AllocatorPtr)=0 throw (AllocatorAlreadyExistsException) |
| Add a allocator to the factory implementation. More... | |
| virtual AllocatorPtr | removeAllocator (UniqueId)=0 throw (AllocatorNotFoundException) |
| Retrieve and remove the allocator identified by argument from the implementation. More... | |
| virtual Iterator< Allocator * > * | createIterator (void) const =0 |
| Interface for creating an Iterator to iterate through the Allocators of an implementation. More... | |
| virtual void | destroyIterator (Iterator< Allocator * > *) const =0 |
| Interface for returning a created Iterator. More... | |
| virtual AssociativeIterator< UniqueId, Allocator * > * | createAssociativeIterator (void) const =0 |
| Interface for creating an AssociativeIterator to iterate through the Identifiers and Allocators of an implementation. More... | |
| virtual void | destroyAssociativeIterator (AssociativeIterator< UniqueId, Allocator * > *) const =0 |
| Interface for returning a created AssociativeIterator. More... | |
Public Member Functions inherited from corelinux::CoreLinuxObject | |
| CoreLinuxObject (void) | |
| Default Constructor. | |
| CoreLinuxObject (CoreLinuxObjectCref) | |
| Copy Constructor. More... | |
| virtual | ~CoreLinuxObject (void) |
| Virtual Destructor. | |
| CoreLinuxObjectRef | operator= (CoreLinuxObjectCref) |
| Assignment operator overload. More... | |
| bool | operator== (CoreLinuxObjectCref) const |
| Equality operator overload. More... | |
| bool | operator!= (CoreLinuxObjectCref) const |
| Non-equality operator overload. More... | |
AbstractFactory provides an interface for creating families of related or dependent objects without specifying their concrete classes.
|
inline |
Copy Constructor.
| AbstractFactory | const reference |
|
pure virtual | ||||||||||||||||||||
Add a allocator to the factory implementation.
| Allocator | pointer |
| AllocatorAlreadyExistsException |
Referenced by corelinux::AbstractFactory< UniqueId >::operator==().
|
pure virtual |
Interface for creating an AssociativeIterator to iterate through the Identifiers and Allocators of an implementation.
Referenced by corelinux::AbstractFactory< UniqueId >::operator==().
|
pure virtual |
Interface for creating an Iterator to iterate through the Allocators of an implementation.
Referenced by corelinux::AbstractFactory< UniqueId >::operator==().
|
pure virtual |
Interface for returning a created AssociativeIterator.
Referenced by corelinux::AbstractFactory< UniqueId >::operator==().
|
pure virtual |
Interface for returning a created Iterator.
Referenced by corelinux::AbstractFactory< UniqueId >::operator==().
|
pure virtual | ||||||||||||||
Retrieve the allocator identified by argument from the implementation.
| Identifier | const reference |
| AllocatorNotFoundException |
Referenced by corelinux::AbstractFactory< UniqueId >::operator==().
|
pure virtual |
Returns the number of total creates for this factory.
Referenced by corelinux::AbstractFactory< UniqueId >::operator==().
|
pure virtual |
Returns the number of total destroys for this factory.
Referenced by corelinux::AbstractFactory< UniqueId >::operator==().
|
inline |
|
inline |
Equality operator.
| AbstractFactory | const reference |
References corelinux::AbstractFactory< UniqueId >::addAllocator(), corelinux::AbstractFactory< UniqueId >::createAssociativeIterator(), corelinux::AbstractFactory< UniqueId >::createIterator(), corelinux::AbstractFactory< UniqueId >::destroyAssociativeIterator(), corelinux::AbstractFactory< UniqueId >::destroyIterator(), corelinux::AbstractFactory< UniqueId >::getAllocator(), corelinux::AbstractFactory< UniqueId >::getCreateCount(), corelinux::AbstractFactory< UniqueId >::getDestroyCount(), and corelinux::AbstractFactory< UniqueId >::removeAllocator().
|
pure virtual | ||||||||||||||
Retrieve and remove the allocator identified by argument from the implementation.
| Identifier | const reference |
| AllocatorNotFoundException |
Referenced by corelinux::AbstractFactory< UniqueId >::operator==().