21 #ifndef NBDistrictCont_h 22 #define NBDistrictCont_h 89 std::map<std::string, NBDistrict*>::const_iterator
begin()
const {
97 std::map<std::string, NBDistrict*>::const_iterator
end()
const {
134 bool addSink(
const std::string& dist,
NBEdge*
const destination,
size_t size() const
Returns the number of districts inside the container.
The representation of a single edge during network building.
A container for districts.
bool addSink(const std::string &dist, NBEdge *const destination, SUMOReal weight)
Adds a sink to the named district.
DistrictCont myDistricts
The instance of the dictionary.
A class representing a single district.
std::map< std::string, NBDistrict * >::const_iterator begin() const
Returns the pointer to the begin of the stored districts.
~NBDistrictCont()
Destructor.
std::map< std::string, NBDistrict * >::const_iterator end() const
Returns the pointer to the end of the stored districts.
NBDistrictCont & operator=(const NBDistrictCont &s)
bool insert(NBDistrict *const district)
Adds a district to the dictionary.
std::map< std::string, NBDistrict * > DistrictCont
The type of the dictionary where a node may be found by her id.
bool addSource(const std::string &dist, NBEdge *const source, SUMOReal weight)
Adds a source to the named district.
Static storage of an output device and its base (abstract) implementation.
NBDistrictCont()
Constructor.
void removeFromSinksAndSources(NBEdge *const e)
Removes the given edge from the lists of sources and sinks in all stored districts.
Container for nodes during the netbuilding process.
NBDistrict * retrieve(const std::string &id) const
Returns the districts with the given id.