Definition at line 134 of file itemcontainer.cpp.
◆ operator()()
bool anonymous_namespace{itemcontainer.cpp}::SortItemWeightFunctor::operator() |
( |
const ItemIdPair *const |
pair1, |
|
|
const ItemIdPair *const |
pair2 |
|
) |
| const |
|
inline |
Definition at line 139 of file itemcontainer.cpp.
142 if ((pair1->mItem ==
nullptr) || (pair2->mItem ==
nullptr))
145 const int w1 = pair1->mItem->getInfo().getWeight();
146 const int w2 = pair2->mItem->getInfo().getWeight();
149 const std::string name1 =
150 pair1->mItem->getInfo().getName();
151 const std::string name2 =
152 pair2->mItem->getInfo().getName();
155 return pair1->mItem->getInvIndex() <
156 pair2->mItem->getInvIndex();
158 return name1 < name2;
The documentation for this class was generated from the following file: