MeshKit
1.0
|
#include <AF2DfltRuleAppVisitor.hpp>
Public Member Functions | |
AF2DfltRuleAppVisitor () | |
Constructor. | |
~AF2DfltRuleAppVisitor () | |
Destructor. | |
AF2DfltRuleAppVisitor (const AF2DfltRuleAppVisitor &toCopy) | |
Copy constructor. | |
AF2DfltRuleAppVisitor & | operator= (const AF2DfltRuleAppVisitor &rhs) |
Assignment operator. | |
const AF2RuleApplication * | getBestRuleApplication () const |
Get the best rule application. | |
void | visit (AF2RuleApplication const &ruleApp) |
Evaluate an AF2RuleApplication to see if it is the best so far. | |
Private Attributes | |
double | bestMetricVal |
AF2RuleApplication * | bestRuleApp |
Static Private Attributes | |
static const double | eqTriAreaPerimSqRatio = sqrt(3.0) / 36.0 |
Definition at line 32 of file AF2DfltRuleAppVisitor.hpp.
Constructor.
Definition at line 12 of file AF2DfltRuleAppVisitor.cpp.
Destructor.
Definition at line 17 of file AF2DfltRuleAppVisitor.cpp.
AF2DfltRuleAppVisitor | ( | const AF2DfltRuleAppVisitor & | toCopy | ) |
Copy constructor.
Definition at line 25 of file AF2DfltRuleAppVisitor.cpp.
const AF2RuleApplication * getBestRuleApplication | ( | ) | const |
Get the best rule application.
Get the rule application, if any, that this AF2RuleAppVisitor has visited, as assessed by its internal metrics. If no successful rule applications have been visited, this method returns a NULL pointer.
Definition at line 61 of file AF2DfltRuleAppVisitor.cpp.
AF2DfltRuleAppVisitor & operator= | ( | const AF2DfltRuleAppVisitor & | rhs | ) |
Assignment operator.
Definition at line 35 of file AF2DfltRuleAppVisitor.cpp.
void visit | ( | AF2RuleApplication const & | ruleApp | ) | [virtual] |
Evaluate an AF2RuleApplication to see if it is the best so far.
This implements the pure virtual method of the superclass. See additional documentation there.
ruleApp | A potential rule application of acceptable quality |
Implements AF2RuleAppVisitor.
Definition at line 66 of file AF2DfltRuleAppVisitor.cpp.
double bestMetricVal [private] |
Definition at line 37 of file AF2DfltRuleAppVisitor.hpp.
AF2RuleApplication* bestRuleApp [private] |
Definition at line 38 of file AF2DfltRuleAppVisitor.hpp.
const double eqTriAreaPerimSqRatio = sqrt(3.0) / 36.0 [static, private] |
Definition at line 36 of file AF2DfltRuleAppVisitor.hpp.