MOAB: Mesh Oriented datABase  (version 5.3.0)
moab::BVHTree::Split_comparator Class Reference

Public Member Functions

bool operator() (const SplitData &a, const SplitData &b) const

Private Types

typedef SplitData first_argument_type
typedef SplitData second_argument_type
typedef bool result_type

Private Member Functions

double objective (const SplitData &a) const

Detailed Description

Definition at line 163 of file BVHTree.hpp.


Member Typedef Documentation

Definition at line 166 of file BVHTree.hpp.

Definition at line 168 of file BVHTree.hpp.

Definition at line 167 of file BVHTree.hpp.


Member Function Documentation

double moab::BVHTree::Split_comparator::objective ( const SplitData a) const [inline, private]

Definition at line 170 of file BVHTree.hpp.

References moab::BVHTree::SplitData::Lmax, moab::BVHTree::SplitData::nl, moab::BVHTree::SplitData::nr, and moab::BVHTree::SplitData::Rmin.

Referenced by operator()().

        {
            return a.Lmax * a.nl - a.Rmin * a.nr;
        }
bool moab::BVHTree::Split_comparator::operator() ( const SplitData a,
const SplitData b 
) const [inline]

Definition at line 176 of file BVHTree.hpp.

References objective().

        {
            return objective( a ) < objective( b );
        }

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