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