#include <test_backtrack.h>


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] |
Definition at line 27 of file test_backtrack.h.
| Permutation< Type, Size >::Permutation | ( | Type(&) | list[Size] | ) | [inline] |
Definition at line 31 of file test_backtrack.h.
| 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.
| 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.
| 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.
| virtual void Permutation< Type, Size >::reset_at | ( | unsigned int | level | ) | [inline, virtual] |
| 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.
| 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.
Type(& Permutation< Type, Size >::list)[Size] [private] |
Definition at line 29 of file test_backtrack.h.
Referenced by Permutation< Type, Size >::is_last_at(), Permutation< Type, Size >::is_valid_at(), Permutation< Type, Size >::set_first_at(), and Permutation< Type, Size >::set_next_at().
1.6.3