How to get parent class of a class?

I have a typical class structure: [Item] <— [Weapon] <— [MightySwordOfFlamesOPEdition]
( “<—” == inherits from)

Now i’m doing sorting function for my inventory and i need to get parent class of object’s class to determine its type. So when it checks MightySwordOfFlamesOPEdition, it will return “Weapon” class.
I can Get Class → Class Is Child Of, but i can’t see anything like Get Class → Get Parent Class. Is it possible?

bumpy bump ^^

The UClass class inherits from UStruct which is the object which handles the class hierarchy.

UStruct::GetSuperClass() is the function which will give you the parent class, that is, parent UStruct.

Cf Class.h:

UClass* GetSuperClass() const
{
	return (UClass*)GetSuperStruct();
}