EndpointSeq ICE_OBJECT_PRX::ice_getEndpoints() const { vector<EndpointIPtr> endpoints = _reference->getEndpoints(); EndpointSeq retSeq; for(vector<EndpointIPtr>::const_iterator p = endpoints.begin(); p != endpoints.end(); ++p) { retSeq.push_back(ICE_DYNAMIC_CAST(Endpoint, *p)); } return retSeq; }