Looking to find how to do an item check

Basically I can’t find the equivalent of “if (player->HasSpell” or "player->GetAreaId() " for items.
Is there some sort of documentation on all of this, and what are these regularly called?
Sorry, I am new to c++.

check this https://github.com/TrinityCore/TrinityCore/blob/8a71e4255ed253b7c4c8fe184c5f43f03d2b1b88/src/server/game/Entities/Player/Player.h#L1374

Thanks rochet!
Looking into it.

So for a comparable script it would have to go player-> [COLOR=rgb(121,93,163)]HasItemCount[COLOR=rgb(51,51,51)](26045, [COLOR=rgb(0,134,179)]1[FONT='SFMono-Regular']) or [/FONT] player-> [COLOR=rgb(121,93,163)]HasItemCount[COLOR=rgb(51,51,51)](26045, [COLOR=rgb(0,134,179)]1, [COLOR=rgb(51,51,51)]inBankAlso = [COLOR=rgb(0,134,179)]false[COLOR=rgb(51,51,51)])?

[COLOR=rgb(51,51,51)]EDIT: First one, thanks for your help.