Loading [MathJax]/extensions/tex2jax.js
Mesh Oriented datABase  (version 5.5.1)
An array-based unstructured mesh library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
moab::CompSortedVect Struct Reference

Public Member Functions

bool operator() (const std::vector< EntityHandle > *v1, const std::vector< EntityHandle > *v2) const
 

Detailed Description

Definition at line 233 of file ReorderTool.cpp.

Member Function Documentation

◆ operator()()

bool moab::CompSortedVect::operator() ( const std::vector< EntityHandle > *  v1,
const std::vector< EntityHandle > *  v2 
) const
inline

Definition at line 235 of file ReorderTool.cpp.

236  { 237  std::vector< EntityHandle >::const_iterator i1, i2; 238  for( i1 = v1->begin(), i2 = v2->begin(); i1 != v1->end(); ++i1, ++i2 ) 239  { 240  if( i2 == v2->end() || *i1 > *i2 ) 241  return false; 242  else if( *i1 < *i2 ) 243  return true; 244  } 245  return i2 != v2->end(); 246  }

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