This has nothing to do with adding functions for setting the map. You do not need a const getter to read values from a const referenced struct.