Yes but maya c++ api is not the main tool for maya development. Maya scripting environment is so in maya if you want to be productive you will use scripts, even most develppers write a bulk of their code in the scripting interface.
Now the scripting interface is the BASE, the api is just for extending the scripting interface. If you do something that mimics stuff from the scripting interface or existing things you SHOULD be writing a script. The Api is for tools that do something completely alien to maya.
These things don't overlap, the api is not meant as a replacement for the script interface. Its meant for people who allready have code and algorithms for something and need to just communicate with maya. For all the others scripting is the way to go.
This is the base module of maya this is what the other parts of maya were implemented on. If you want to operate like existing maya functionality your supposed to use the script interfaces.
I am wishing if there is a direct way of doing at list this function.
Yes but then it wouldnt be a lowlevel interface.
I am wishing if there is a direct way of doing at list this function.
Yes then you would need to use either mel or python. That is where the bulk of the functionality is, so when you look for functions the gui has the scripting tool set is where you should be looking. So if you feel that your not productive its simply because you use the wrong tool for the wrong task.
Maya is by design a script more, where less hardcore code for things that really count kind of design. Use it liek that and you will be happy, don't use it like that and your life will suck. Anyway this is the best possible paradigm as it minimizes time on the lowest level of code and maximizes doing conceptual work. So the scripting is for the jobs you would do most of the time and the api is whet you need to do all those nasty computer science stuffs like designing some heap sort of something.