Spaces which are generated by discrete sets