Uf_drafting_entity type

In C style , we can use uf_obj_cycle_objs_in_parts , with type 25(uf_drafting_entity_type)to get drafting entity like note, label, idsymbol..etc,
In C++ how to get drafting entity and its type.

What is the equivalent function for uf_obj_cycle_objs_in_parts? in C++

Also, for entity subtype fpt, how to differentiate type fcf,datum symbol.
For both it is returning fpt subtype.
In c# we have function called "gettype" in nxobject class, so I need equivalent function in C++.

Thank you