Definition at line 164 of file itemcontainer.cpp.
◆ operator()()
bool anonymous_namespace{itemcontainer.cpp}::SortItemAmountFunctor::operator() |
( |
const ItemIdPair *const |
pair1, |
|
|
const ItemIdPair *const |
pair2 |
|
) |
| const |
|
inline |
Definition at line 169 of file itemcontainer.cpp.
172 if ((pair1->mItem ==
nullptr) || (pair2->mItem ==
nullptr))
175 const int c1 = pair1->mItem->getQuantity();
176 const int c2 = pair2->mItem->getQuantity();
179 const std::string name1 =
180 pair1->mItem->getInfo().getName();
181 const std::string name2 =
182 pair2->mItem->getInfo().getName();
185 return pair1->mItem->getInvIndex() <
186 pair2->mItem->getInvIndex();
188 return name1 < name2;
The documentation for this class was generated from the following file: