High-order unstructured mesh representation and discrete function spaces