OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4SortObjectSTLCache Class Reference

Public Member Functions

 C4SortObjectSTLCache (C4SortObject &rSorter, C4Value *pVals)
 
bool operator() (int32_t n1, int32_t n2)
 

Detailed Description

Definition at line 66 of file C4ValueArray.cpp.

Constructor & Destructor Documentation

C4SortObjectSTLCache::C4SortObjectSTLCache ( C4SortObject rSorter,
C4Value pVals 
)
inline

Definition at line 73 of file C4ValueArray.cpp.

73 : rSorter(rSorter), pVals(pVals) {}

Member Function Documentation

bool C4SortObjectSTLCache::operator() ( int32_t  n1,
int32_t  n2 
)
inline

Definition at line 74 of file C4ValueArray.cpp.

References C4SortObject::CompareCache().

74 { return rSorter.CompareCache(n1, n2, pVals[n1]._getObj(), pVals[n2]._getObj()) > 0; }
virtual int32_t CompareCache(int32_t iObj1, int32_t iObj2, C4Object *pObj1, C4Object *pObj2)
Definition: C4FindObject.h:412

Here is the call graph for this function:


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