Debian Codegraph @

include/BALL/STRUCTURE/BONDORDERS/bondOrderAssignmentStrategy.h

raw symbols SCIP
1 #ifndef BALL_STRUCTURE_BONDORDERS_BONDORDERASSIGNMENTSTRATEGY_H
2 #define BALL_STRUCTURE_BONDORDERS_BONDORDERASSIGNMENTSTRATEGY_H
3
4 #ifndef BALL_STRUCTURE_BONDORDERS_BONDORDERASSIGNMENT_H
5 # include <BALL/STRUCTURE/BONDORDERS/bondOrderAssignment.h>
6 #endif
7
8 #ifndef BALL_DATATYPE_OPTIONS_H
9 # include <BALL/DATATYPE/options.h>
10 #endif
11
12 #include <boost/shared_ptr.hpp>
13
14 namespace BALL
15 {
16 class AssignBondOrderProcessor;
17
18 /** \brief Base class for bond order assignment algorithms.
19 *
20 * This class forms the base of a hierarchy of solution strategies
21 * for the bond order assignment problem. In itself, the class is not
22 * terribly useful. Instead, it defines the interface for the algorithms
23 * used by the \link AssignBondOrderProcessor AssignBondOrderProcessor \endlink
24 * which follows the strategy pattern.
25 */
26 class BALL_EXPORT BondOrderAssignmentStrategy
27 {
28 public:
29 BondOrderAssignmentStrategy(AssignBondOrderProcessor* parent);
30
31 virtual boost::shared_ptr<BondOrderAssignment> computeNextSolution() = 0;
32 virtual bool readOptions(const Options& options);
33 virtual void setDefaultOptions();
34 virtual void clear();
35 virtual void init() = 0;
36
37 /// Our parent processor
38 AssignBondOrderProcessor* abop;
39
40 };
41 }
42 #endif // BALL_STRUCTURE_BONDORDERS_BONDORDERASSIGNMENTSTRATEGY_H