MOAB: Mesh Oriented datABase  (version 5.3.1)
moab::SharedSetData::less_vect Struct Reference

Public Member Functions

bool operator() (const std::vector< unsigned > &a, const std::vector< unsigned > &b) const

Detailed Description

Map type for lookup of ProcHandleMapType instance by rank

Definition at line 131 of file SharedSetData.hpp.


Member Function Documentation

bool moab::SharedSetData::less_vect::operator() ( const std::vector< unsigned > &  a,
const std::vector< unsigned > &  b 
) const [inline]

Definition at line 133 of file SharedSetData.hpp.

        {
            // sort by size first
            if( a.size() != b.size() ) return a.size() < b.size();
            // if same size, sort by first non-equal value
            size_t i = 0;
            while( i != a.size() && a[i] == b[i] )
                ++i;
            return i != a.size() && a[i] < b[i];
        }

List of all members.


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