Inheritance diagram for VersionSelector

Public Methods | |
| virtual Use* | operate (Use* ref_use, Use* new_use) |
Static Public Methods | |
| VersionSelector& | instance () |
Each strategy is implemented as a separate class (which overrides the operate method)
Definition at line 97 of file cmt_use.cxx.
|
|
Definition at line 2318 of file cmt_use.cxx. Referenced by Use::add(). 02319 {
02320 static BestFitSelector best_fit;
02321 static BestFitNoCheckSelector best_fit_no_check;
02322 static FirstChoiceSelector first_choice;
02323 static LastChoiceSelector last_choice;
02324 static KeepAllSelector keep_all;
02325
02326 switch (Cmt::get_current_strategy ())
02327 {
02328 case BestFit:
02329 return (best_fit);
02330 case BestFitNoCheck:
02331 return (best_fit_no_check);
02332 case FirstChoice:
02333 return (first_choice);
02334 case LastChoice:
02335 return (last_choice);
02336 case KeepAll:
02337 return (keep_all);
02338 default:
02339 return (best_fit);
02340 }
02341 }
|
|
|
Reimplemented in BestFitSelector, BestFitNoCheckSelector, FirstChoiceSelector, LastChoiceSelector, and KeepAllSelector. Definition at line 102 of file cmt_use.cxx. Referenced by Use::add(). 00103 {
00104 return (ref_use);
00105 }
|
1.2.3 written by Dimitri van Heesch,
© 1997-2000