KFbxEmbeddedFilesAccumulator::KFbxPropertyUrlIndexCompare Struct Reference


Detailed Description

Comparer for KFbxPropertyUrlIndexSet, which outputs consistent partial orders for KFbxPropertyUrlIndex pairs.

Definition at line 83 of file kfbxembeddedfilesaccumulator.h.

#include <kfbxembeddedfilesaccumulator.h>

List of all members.

Public Member Functions

int  operator() (const KFbxPropertyUrlIndex &pUrl1, const KFbxPropertyUrlIndex &pUrl2) const

Member Function Documentation

int operator() ( const KFbxPropertyUrlIndex pUrl1,
const KFbxPropertyUrlIndex pUrl2 
) const [inline]

Definition at line 85 of file kfbxembeddedfilesaccumulator.h.

            {
                if( pUrl1.mPropName < pUrl2.mPropName )
                {
                    return -1;
                }
                if( pUrl2.mPropName < pUrl1.mPropName )
                {
                    return 1;
                }

                if(pUrl1.mIndex < pUrl2.mIndex)
                {
                    return -1;
                }
                if(pUrl2.mIndex < pUrl1.mIndex)
                {
                    return 1;
                }

                return 0;                
            }

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