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

GgtExercise Class Reference

Inheritance diagram for GgtExercise:

AbstractExercise List of all members.

Public Methods

 GgtExercise (string name)

Protected Methods

int execute ()
void getInput ()

Static Private Methods

int ggt (int a, int b)

Private Attributes

int fA
int fB

Detailed Description

The Exercise.

© Bernhard Wagner, xmlizer.biz, 2002.

Definition at line 13 of file GgtExercise.cpp.


Constructor & Destructor Documentation

GgtExercise::GgtExercise string    name [inline]
 

Constructor.

Parameters:
name  The name of the exercise

Definition at line 21 of file GgtExercise.cpp.


Member Function Documentation

int GgtExercise::execute   [protected, virtual]
 

Executes this exercise. To be overridden in subclasses. (Hook Method)

Returns:
The exercise's outcome.

Reimplemented from AbstractExercise.

Definition at line 68 of file GgtExercise.cpp.

References fA, fB, and ggt().

void GgtExercise::getInput   [protected, virtual]
 

Gets the input for this exercise. To be overridden in subclasses. (Hook Method)

Reimplemented from AbstractExercise.

Definition at line 61 of file GgtExercise.cpp.

References fA, and fB.

int GgtExercise::ggt int    a,
int    b
[static, private]
 

Calculates the gcd of two integers.

Parameters:
a  The first number
a  The second number
Returns:
The GCD

Definition at line 73 of file GgtExercise.cpp.

Referenced by execute().


Member Data Documentation

int GgtExercise::fA [private]
 

Definition at line 50 of file GgtExercise.cpp.

Referenced by execute(), and getInput().

int GgtExercise::fB [private]
 

Definition at line 51 of file GgtExercise.cpp.

Referenced by execute(), and getInput().


The documentation for this class was generated from the following file:
Generated on Sat Oct 19 21:38:43 2002 for Exercise Framework by doxygen1.2.18