Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Examples  

MazeBuilder Class Reference

MazeBuilder implements the Builder pattern. More...

#include <MazeBuilder.hpp>

Inheritance diagram for MazeBuilder

Inheritance graph
[legend]
Collaboration diagram for MazeBuilder:

Collaboration graph
[legend]
List of all members.

Public Methods

 MazeBuilder ( MazeBuilderFactoryPtr )
 Copy constructor.

 MazeBuilder ( MazeBuilderCref )
 Copy constructor.

virtual ~MazeBuilder ( void )
 Virtual Destructor.

bool operator== ( MazeBuilderCref aRef ) const
 Equality operator.


Protected Methods

 MazeBuilder ( void ) throw ( corelinux::Assertion )
 Default constructor.

MazeBuilderRef operator= ( MazeBuilderCref ) throw ( corelinux::Assertion )
 Assignment operator.

virtual SideMapCref getSideMap ( void ) const
 Base method to associate doors to rooms.

virtual void constructSideMap ( void )
 Base method to construct layout template.

virtual void createRooms ( MazePtr ) const
 Our method for construction of Room parts.

virtual void connectRoomsWithDoors ( MazePtr ) const
 Our method for constructing and connecting doors to rooms.

virtual void disconnectAndDestroyDoors ( MazePtr ) const
 Our method for destroying all doors.

virtual MazePtr createProduct ( void ) const
 Pure virtual createProduct.

virtual void destroyProduct ( MazePtr ) const
 Pure virtual destroyProduct.


Detailed Description

MazeBuilder implements the Builder pattern.

It constructs a simple maze by utilizing the MazeBuilderFactory for the various parts: Rooms, Doors, and Walls.

It lets the default "create" of Builder to be exposed because the work is really done in the createProduct implementation here


The documentation for this class was generated from the following files:
This is the CoreLinux++ reference manual
Provided by The CoreLinux Consortium