★ wanayoo — archive 1999 http://corelinux.sourceforge.net/classref/AbstractFactory.htmlNouvelle recherche | Portail wanayoo

template< class UniqueId > class corelinux::AbstractFactory: public CoreLinuxObject

AbstractFactory provides an interface for creating families of related or dependent objects without specifying their concrete classes.

Inheritance:


Public Methods

[more] AbstractFactory( const AbstractFactory & )
Copy Constructor
[more] AbstractFactory( void )
Default constructor
[more]virtual void addAllocator( UniqueId, AllocatorPtr ) throw(AllocatorAlreadyExistsException)
Add a allocator to the factory implementation
[more]virtual AssociativeIterator<UniqueId,Allocator *> * createAssociativeIterator( void ) const
Interface for creating an AssociativeIterator to iterate through the Identifiers and Allocators of an implementation.
[more]virtual Iterator<Allocator *> * createIterator( void ) const
Interface for creating an Iterator to iterate through the Allocators of an implementation.
[more]virtual void destroyAssociativeIterator( AssociativeIterator<UniqueId, Allocator *> * ) const
Interface for returning a created AssociativeIterator.
[more]virtual void destroyIterator( Iterator<Allocator *> * ) const
Interface for returning a created Iterator.
[more]virtual AllocatorPtr getAllocator( UniqueId ) const throw(AllocatorNotFoundException)
Retrieve the allocator identified by argument from the implementation
[more]virtual Count getCreateCount( void ) const
Returns the number of total creates for this factory.
[more]virtual Count getDestroyCount( void ) const
Returns the number of total destroys for this factory.
[more]AbstractFactory& operator=( const AbstractFactory & )
Assignment operator
[more]bool operator==( const AbstractFactory & aRef ) const
Equality operator
[more]virtual AllocatorPtr removeAllocator( UniqueId ) throw(AllocatorNotFoundException)
Retrieve and remove the allocator identified by argument from the implementation
[more]virtual ~AbstractFactory( void )
Virtual Destructor


Inherited from CoreLinuxObject:

Public Methods

obool operator!=( CoreLinuxObjectCref ) const


Documentation

AbstractFactory provides an interface for creating families of related or dependent objects without specifying their concrete classes.
o AbstractFactory( void )
Default constructor

o AbstractFactory( const AbstractFactory & )
Copy Constructor
Parameters:
AbstractFactory - const reference

ovirtual ~AbstractFactory( void )
Virtual Destructor

oAbstractFactory& operator=( const AbstractFactory & )
Assignment operator
Returns:
AbstractFactory reference
Parameters:
AbstractFactory - const reference

obool operator==( const AbstractFactory & aRef ) const
Equality operator
Returns:
bool - true if instances are same
Parameters:
AbstractFactory - const reference

ovirtual Count getCreateCount( void ) const
Returns the number of total creates for this factory.
Returns:
corelinux::Count

ovirtual Count getDestroyCount( void ) const
Returns the number of total destroys for this factory.
Returns:
corelinux::Count

ovirtual AllocatorPtr getAllocator( UniqueId ) const throw(AllocatorNotFoundException)
Retrieve the allocator identified by argument from the implementation
Throws:
AllocatorNotFoundException
Returns:
Allocator pointer
Parameters:
Identifier - const reference

ovirtual void addAllocator( UniqueId, AllocatorPtr ) throw(AllocatorAlreadyExistsException)
Add a allocator to the factory implementation
Throws:
AllocatorAlreadyExistsException
Parameters:
Allocator - pointer

ovirtual AllocatorPtr removeAllocator( UniqueId ) throw(AllocatorNotFoundException)
Retrieve and remove the allocator identified by argument from the implementation
Throws:
AllocatorNotFoundException
Returns:
Allocator pointer
Parameters:
Identifier - const reference

ovirtual Iterator<Allocator *> * createIterator( void ) const
Interface for creating an Iterator to iterate through the Allocators of an implementation.
Returns:
Iterator pointer of type Allocator pointer

ovirtual void destroyIterator( Iterator<Allocator *> * ) const
Interface for returning a created Iterator.
Returns:
Iterator pointer of type Allocator pointer

ovirtual AssociativeIterator<UniqueId,Allocator *> * createAssociativeIterator( void ) const
Interface for creating an AssociativeIterator to iterate through the Identifiers and Allocators of an implementation.
Returns:
AssociativeIterator pointer of type

ovirtual void destroyAssociativeIterator( AssociativeIterator<UniqueId, Allocator *> * ) const
Interface for returning a created AssociativeIterator.
Returns:
Iterator pointer of type


This class has no child classes.
See Also:
Allocator, AbstractAllocator, Identifier, Iterator, AssociativeIterator



This page was generated with the help of DOC++.