deck::CardFactory< cardType > Class Template Reference

#include <CardFactory.h>

List of all members.

Public Member Functions

virtual ~CardFactory ()
 CardFactory constructor.
virtual CardcreateCard (int rank, enum Card::SuitType suit)
 CardFactory destructor.


Detailed Description

template<typename cardType>
class deck::CardFactory< cardType >

CardFactory creates cards of the given card type. We use the factory method design pattern.

Member Function Documentation

template<typename cardType>
virtual Card* deck::CardFactory< cardType >::createCard ( int  rank,
enum Card::SuitType  suit 
) [inline, virtual]

CardFactory destructor.

Create a card.


The documentation for this class was generated from the following file:
Generated on Thu Mar 6 09:44:38 2008 for carddeck by  doxygen 1.5.3