Project Euler Homework
Public Member Functions

perm043 Class Reference

#include <043_permutation.h>

List of all members.

Public Member Functions

 perm043 (unsigned)
 sequence of digits (0~N)
 perm043 (digit *, unsigned)
 Construct initial permutation 0123...N.
 ~perm043 ()
 Construct permutation from existing array.
bool next ()
 Destructor.
void print_perm ()
 find next permutation
int operator[] (idx)
 print the permutation to stdout
unsigned length ()
 find the i-th digit

Detailed Description

list all permutations from 0 to N

Definition at line 12 of file 043_permutation.h.


Constructor & Destructor Documentation

perm043::perm043 ( unsigned  size)

sequence of digits (0~N)

Parameters:
sizenumber of digits

Definition at line 31 of file 043_permutation.h.

perm043::perm043 ( digit *  perm2,
unsigned  length 
)

Construct initial permutation 0123...N.

Parameters:
perm2array of digits
lengthnumber of digits

Definition at line 43 of file 043_permutation.h.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables