Mesh Oriented datABase  (version 5.5.1)
An array-based unstructured mesh library
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 172 of file BVHTree.hpp.

Member Typedef Documentation

◆ first_argument_type

◆ result_type

Definition at line 177 of file BVHTree.hpp.

◆ second_argument_type

Member Function Documentation

◆ objective()

double moab::BVHTree::Split_comparator::objective ( const SplitData a) const
inlineprivate

Definition at line 179 of file BVHTree.hpp.

180  {
181  return a.Lmax * a.nl - a.Rmin * a.nr;
182  }

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

Referenced by operator()().

◆ operator()()

bool moab::BVHTree::Split_comparator::operator() ( const SplitData a,
const SplitData b 
) const
inline

Definition at line 185 of file BVHTree.hpp.

186  {
187  return objective( a ) < objective( b );
188  }

References objective().


The documentation for this class was generated from the following file: