MeshKit  1.0
AF2DfltRuleAppVisitor Class Reference

#include <AF2DfltRuleAppVisitor.hpp>

Inheritance diagram for AF2DfltRuleAppVisitor:

List of all members.

Public Member Functions

 AF2DfltRuleAppVisitor ()
 Constructor.
 ~AF2DfltRuleAppVisitor ()
 Destructor.
 AF2DfltRuleAppVisitor (const AF2DfltRuleAppVisitor &toCopy)
 Copy constructor.
AF2DfltRuleAppVisitoroperator= (const AF2DfltRuleAppVisitor &rhs)
 Assignment operator.
const AF2RuleApplicationgetBestRuleApplication () 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
AF2RuleApplicationbestRuleApp

Static Private Attributes

static const double eqTriAreaPerimSqRatio = sqrt(3.0) / 36.0

Detailed Description

Definition at line 32 of file AF2DfltRuleAppVisitor.hpp.


Constructor & Destructor Documentation

Constructor.

Definition at line 12 of file AF2DfltRuleAppVisitor.cpp.

Destructor.

Definition at line 17 of file AF2DfltRuleAppVisitor.cpp.

Copy constructor.

Definition at line 25 of file AF2DfltRuleAppVisitor.cpp.


Member Function Documentation

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.

Returns:
the best rule application, or null if no rule applications have been visited

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.

Parameters:
ruleAppA potential rule application of acceptable quality

Implements AF2RuleAppVisitor.

Definition at line 66 of file AF2DfltRuleAppVisitor.cpp.


Member Data Documentation

double bestMetricVal [private]

Definition at line 37 of file AF2DfltRuleAppVisitor.hpp.

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines