[c++]collada dom and import geometry

Hy.
I’ m starting a program for use colladadom to import mesh.
How query the database for get all the tipes of determined type?
ad es:

vector<daeElement*> nodes = daeDoc->getDatabase()->typeLookup(domNode::ID());

return the camera the light ecc…
I would to get all vertex or all polygons.
Thanks.
By.