MOAB: Mesh Oriented datABase  (version 5.4.1)
ScalarMultiplyMetricTest< SCALE > Class Template Reference
+ Inheritance diagram for ScalarMultiplyMetricTest< SCALE >:
+ Collaboration diagram for ScalarMultiplyMetricTest< SCALE >:

Public Member Functions

 ScalarMultiplyMetricTest ()

Protected Member Functions

virtual bool evaluate (PatchData &, size_t, double &, MsqError &)

Private Member Functions

 CPPUNIT_TEST_SUITE (ScalarMultiplyMetricTest< SCALE >)
 CPPUNIT_TEST (test_supported_types)
 CPPUNIT_TEST (test_ideal_element_eval)
 CPPUNIT_TEST (test_ideal_element_grad)
 CPPUNIT_TEST (test_ideal_element_hess)
 CPPUNIT_TEST (test_non_ideal_eval)
 CPPUNIT_TEST (test_valid_hessian)
 CPPUNIT_TEST (test_inverted_elements)
 CPPUNIT_TEST (test_degenerate_elements)
 CPPUNIT_TEST (test_get_evaluations)
 CPPUNIT_TEST (test_get_element_indices)
 CPPUNIT_TEST (test_get_fixed_indices)
 CPPUNIT_TEST (test_eval_with_indices)
 CPPUNIT_TEST (test_eval_with_gradient)
 CPPUNIT_TEST (test_eval_with_hessian)
 CPPUNIT_TEST_SUITE_END ()

Private Attributes

IdealWeightInverseMeanRatio m1
ScalarMultiplyQualityMetric m

Detailed Description

template<int SCALE>
class ScalarMultiplyMetricTest< SCALE >

Definition at line 428 of file CompositeMetricTest.cpp.


Constructor & Destructor Documentation

template<int SCALE>
ScalarMultiplyMetricTest< SCALE >::ScalarMultiplyMetricTest ( ) [inline]

Definition at line 455 of file CompositeMetricTest.cpp.

References mMetric.

                               : m( &m1, SCALE )
    {
        mMetric = &m;
    }

Member Function Documentation

template<int SCALE>
ScalarMultiplyMetricTest< SCALE >::CPPUNIT_TEST ( test_supported_types  ) [private]
template<int SCALE>
ScalarMultiplyMetricTest< SCALE >::CPPUNIT_TEST ( test_ideal_element_eval  ) [private]
template<int SCALE>
ScalarMultiplyMetricTest< SCALE >::CPPUNIT_TEST ( test_ideal_element_grad  ) [private]
template<int SCALE>
ScalarMultiplyMetricTest< SCALE >::CPPUNIT_TEST ( test_ideal_element_hess  ) [private]
template<int SCALE>
ScalarMultiplyMetricTest< SCALE >::CPPUNIT_TEST ( test_non_ideal_eval  ) [private]
template<int SCALE>
ScalarMultiplyMetricTest< SCALE >::CPPUNIT_TEST ( test_valid_hessian  ) [private]
template<int SCALE>
ScalarMultiplyMetricTest< SCALE >::CPPUNIT_TEST ( test_inverted_elements  ) [private]
template<int SCALE>
ScalarMultiplyMetricTest< SCALE >::CPPUNIT_TEST ( test_degenerate_elements  ) [private]
template<int SCALE>
ScalarMultiplyMetricTest< SCALE >::CPPUNIT_TEST ( test_get_evaluations  ) [private]
template<int SCALE>
ScalarMultiplyMetricTest< SCALE >::CPPUNIT_TEST ( test_get_element_indices  ) [private]
template<int SCALE>
ScalarMultiplyMetricTest< SCALE >::CPPUNIT_TEST ( test_get_fixed_indices  ) [private]
template<int SCALE>
ScalarMultiplyMetricTest< SCALE >::CPPUNIT_TEST ( test_eval_with_indices  ) [private]
template<int SCALE>
ScalarMultiplyMetricTest< SCALE >::CPPUNIT_TEST ( test_eval_with_gradient  ) [private]
template<int SCALE>
ScalarMultiplyMetricTest< SCALE >::CPPUNIT_TEST ( test_eval_with_hessian  ) [private]
template<int SCALE>
ScalarMultiplyMetricTest< SCALE >::CPPUNIT_TEST_SUITE ( ScalarMultiplyMetricTest< SCALE >  ) [private]
template<int SCALE>
ScalarMultiplyMetricTest< SCALE >::CPPUNIT_TEST_SUITE_END ( ) [private]
template<int SCALE>
bool ScalarMultiplyMetricTest< SCALE >::evaluate ( PatchData pd,
size_t  h,
double &  val,
MsqError err 
) [protected, virtual]

Implements CompositeMetricTestBase.

Definition at line 462 of file CompositeMetricTest.cpp.

References ScalarMultiplyMetricTest< SCALE >::evaluate(), and MSQ_ERRFALSE.

Referenced by ScalarMultiplyMetricTest< SCALE >::evaluate().

{
    bool rval = m1.evaluate( pd, h, val, err );
    MSQ_ERRFALSE( err );
    val *= SCALE;
    return rval;
}

Member Data Documentation

template<int SCALE>
ScalarMultiplyQualityMetric ScalarMultiplyMetricTest< SCALE >::m [private]

Definition at line 449 of file CompositeMetricTest.cpp.

template<int SCALE>
IdealWeightInverseMeanRatio ScalarMultiplyMetricTest< SCALE >::m1 [private]

Definition at line 448 of file CompositeMetricTest.cpp.

List of all members.


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