regal::AbstractSuit Class Reference

#include <AbstractSuit.hpp>

Inheritance diagram for regal::AbstractSuit:

regal::CatalanSuit regal::CompletionSuit List of all members.

Public Member Functions

 AbstractSuit (const int &s)
virtual int * first ()=0
int getSize ()
int * getSuit ()
virtual int * next ()=0
virtual ~AbstractSuit ()

Protected Attributes

int position
int size
int * tab

Friends

std::ostream & operator<< (std::ostream &o, const AbstractSuit &a)

Constructor & Destructor Documentation

regal::AbstractSuit::AbstractSuit ( const int &  s  )  [inline]

Allocates the parameters

Parameters:
s is the size of the partition

virtual regal::AbstractSuit::~AbstractSuit (  )  [inline, virtual]

Destroy an instance of a Suit


Member Function Documentation

virtual int* regal::AbstractSuit::first (  )  [pure virtual]

Implemented in regal::CatalanSuit, and regal::CompletionSuit.

int regal::AbstractSuit::getSize (  )  [inline]

int* regal::AbstractSuit::getSuit (  )  [inline]

virtual int* regal::AbstractSuit::next (  )  [pure virtual]

Implemented in regal::CatalanSuit, and regal::CompletionSuit.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const AbstractSuit a 
) [friend]

Print a partition as a list of integer Returns the modified steam.


Member Data Documentation

int regal::AbstractSuit::position [protected]

used for exhaustive suit generation

int regal::AbstractSuit::size [protected]

Maximum size of the suit

int* regal::AbstractSuit::tab [protected]

Numerical suit, allocated only once, size can't be changed


The documentation for this class was generated from the following file:
Generated on Mon Sep 29 16:33:59 2008 for REGAL by  doxygen 1.5.1