Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set
// doxy/ or-tools/ examples/ cpp/

operations_research::SwapSymbols Class Reference

Swap 2 symbols. More...

Inheritance diagram for operations_research::SwapSymbols:

operations_research::DobbleOperator IntVarLocalSearchOperator

List of all members.

Public Member Functions

 SwapSymbols (const IntVar *const *card_symbol_vars, int num_vars, int num_cards, int num_symbols, int num_symbols_per_card)
virtual ~SwapSymbols ()
virtual bool MakeOneNeighbor ()
 Finds the next swap, returns false when it has finished.


Detailed Description

Swap 2 symbols.

This operator explores *all* pairs (card1, some symbol on card1), (card2, some symbol on card2) and swaps the symbols between the two cards.

Note that this could create invalid moves (for example, by adding a symbol to a card that already had it); see the DobbleFilter class below to see how we filter those out.

Definition at line 309 of file dobble_ls.cc.


Constructor & Destructor Documentation

operations_research::SwapSymbols::SwapSymbols ( const IntVar *const *  card_symbol_vars,
int  num_vars,
int  num_cards,
int  num_symbols,
int  num_symbols_per_card 
) [inline]

Definition at line 311 of file dobble_ls.cc.

virtual operations_research::SwapSymbols::~SwapSymbols (  )  [inline, virtual]

Definition at line 327 of file dobble_ls.cc.


Member Function Documentation

virtual bool operations_research::SwapSymbols::MakeOneNeighbor (  )  [inline, virtual]

Finds the next swap, returns false when it has finished.

Definition at line 330 of file dobble_ls.cc.


The documentation for this class was generated from the following file: