Definition at line 194 of file itemcontainer.cpp.
◆ operator()()
bool anonymous_namespace{itemcontainer.cpp}::SortItemTypeFunctor::operator() |
( |
const ItemIdPair *const |
pair1, |
|
|
const ItemIdPair *const |
pair2 |
|
) |
| const |
|
inline |
Definition at line 199 of file itemcontainer.cpp.
202 if ((pair1->mItem ==
nullptr) || (pair2->mItem ==
nullptr))
205 const ItemInfo &info1 = pair1->mItem->getInfo();
206 const ItemInfo &info2 = pair2->mItem->getInfo();
211 const std::string &name1 = info1.
getName();
212 const std::string &name2 = info2.
getName();
215 return pair1->mItem->getInvIndex() <
216 pair2->mItem->getInvIndex();
218 return name1 < name2;
const std::string & getName() const
ItemDbTypeT getType() const
ItemDbType ::T ItemDbTypeT
References ItemInfo::getName(), and ItemInfo::getType().
The documentation for this class was generated from the following file: