MOAB: Mesh Oriented datABase  (version 5.3.1)
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 227 of file ReorderTool.cpp.


Member Function Documentation

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

Definition at line 229 of file ReorderTool.cpp.

    {
        std::vector< EntityHandle >::const_iterator i1, i2;
        for( i1 = v1->begin(), i2 = v2->begin(); i1 != v1->end(); ++i1, ++i2 )
        {
            if( i2 == v2->end() || *i1 > *i2 )
                return false;
            else if( *i1 < *i2 )
                return true;
        }
        return i2 != v2->end();
    }

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