20 #ifndef NBDistrictCont_h 21 #define NBDistrictCont_h 88 std::map<std::string, NBDistrict*>::const_iterator
begin()
const {
96 std::map<std::string, NBDistrict*>::const_iterator
end()
const {
133 bool addSink(
const std::string& dist,
NBEdge*
const destination,
The representation of a single edge during network building.
A container for districts.
DistrictCont myDistricts
The instance of the dictionary.
A class representing a single district.
bool addSource(const std::string &dist, NBEdge *const source, double weight)
Adds a source to the named 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.
bool addSink(const std::string &dist, NBEdge *const destination, double weight)
Adds a sink to the named district.
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.
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.
int size() const
Returns the number of districts inside the container.
NBDistrict * retrieve(const std::string &id) const
Returns the districts with the given id.