Permutation< Type, Size > Class Template Reference

#include <test_backtrack.h>

Inheritance diagram for Permutation< Type, Size >:
Inheritance graph
[legend]
Collaboration diagram for Permutation< Type, Size >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Permutation (Type(&list)[Size])
virtual void set_first_at (unsigned int level)
 Set the element to the first sibling.
virtual void set_next_at (unsigned int level)
 Set the element to the next sibling.
virtual void reset_at (unsigned int level)
 Reset the element.
virtual bool is_last_at (unsigned int level) const
 Check if the element is set to the last sibling.
virtual bool is_valid_at (int level) const
 Check if the element is valid (following elements ignored).
virtual bool is_last_level (int level) const
 Check if the level is the last possible level.

Private Attributes

Type(& list )[Size]

Detailed Description

template<typename Type, unsigned int Size>
class Permutation< Type, Size >

Definition at line 27 of file test_backtrack.h.


Constructor & Destructor Documentation

template<typename Type, unsigned int Size>
Permutation< Type, Size >::Permutation ( Type(&)  list[Size]  )  [inline]

Definition at line 31 of file test_backtrack.h.


Member Function Documentation

template<typename Type, unsigned int Size>
virtual bool Permutation< Type, Size >::is_last_at ( unsigned int  level  )  const [inline, virtual]

Check if the element is set to the last sibling.

Implements BackTrack::Solution.

Definition at line 35 of file test_backtrack.h.

References Permutation< Type, Size >::list.

template<typename Type, unsigned int Size>
virtual bool Permutation< Type, Size >::is_last_level ( int  level  )  const [inline, virtual]

Check if the level is the last possible level.

Implements BackTrack::Solution.

Definition at line 46 of file test_backtrack.h.

template<typename Type, unsigned int Size>
virtual bool Permutation< Type, Size >::is_valid_at ( int  level  )  const [inline, virtual]

Check if the element is valid (following elements ignored).

Implements BackTrack::Solution.

Definition at line 39 of file test_backtrack.h.

References Permutation< Type, Size >::list.

template<typename Type, unsigned int Size>
virtual void Permutation< Type, Size >::reset_at ( unsigned int  level  )  [inline, virtual]

Reset the element.

Implements BackTrack::Solution.

Definition at line 34 of file test_backtrack.h.

template<typename Type, unsigned int Size>
virtual void Permutation< Type, Size >::set_first_at ( unsigned int  level  )  [inline, virtual]

Set the element to the first sibling.

Implements BackTrack::Solution.

Definition at line 32 of file test_backtrack.h.

References Permutation< Type, Size >::list.

template<typename Type, unsigned int Size>
virtual void Permutation< Type, Size >::set_next_at ( unsigned int  level  )  [inline, virtual]

Set the element to the next sibling.

Implements BackTrack::Solution.

Definition at line 33 of file test_backtrack.h.

References Permutation< Type, Size >::list.


Member Data Documentation

template<typename Type, unsigned int Size>
Type(& Permutation< Type, Size >::list)[Size] [private]

The documentation for this class was generated from the following file:
Generated on Mon Apr 5 17:01:10 2010 for VDR plugin 'Sudoku' by  doxygen 1.6.3