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

Public Member Functions

 ScalarAddMetricTest ()

Protected Member Functions

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

Private Member Functions

 CPPUNIT_TEST_SUITE (ScalarAddMetricTest< OFFSET >)
 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
ScalarAddQualityMetric m

Detailed Description

template<int OFFSET>
class ScalarAddMetricTest< OFFSET >

Definition at line 378 of file CompositeMetricTest.cpp.


Constructor & Destructor Documentation

template<int OFFSET>
ScalarAddMetricTest< OFFSET >::ScalarAddMetricTest ( ) [inline]

Definition at line 405 of file CompositeMetricTest.cpp.

References mMetric.

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

Member Function Documentation

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

Implements CompositeMetricTestBase.

Definition at line 412 of file CompositeMetricTest.cpp.

References ScalarAddMetricTest< OFFSET >::evaluate(), MSQ_ERRFALSE, and OFFSET.

Referenced by ScalarAddMetricTest< OFFSET >::evaluate().

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

Member Data Documentation

template<int OFFSET>
ScalarAddQualityMetric ScalarAddMetricTest< OFFSET >::m [private]

Definition at line 399 of file CompositeMetricTest.cpp.

template<int OFFSET>
IdealWeightInverseMeanRatio ScalarAddMetricTest< OFFSET >::m1 [private]

Definition at line 398 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