1 #ifndef TRAFFIC_MATRIX_H
2 #define TRAFFIC_MATRIX_H
26 unsigned int size()
const;
37 Quantity getFlow(
const std::string &source,
const std::string &destination)
const;
47 Quantity getFlow(
const std::pair<std::string, std::string> &nodes)
const;
56 void setFlow(
const std::string &source,
const std::string &destination,
65 void setFlow(
const std::pair<std::string, std::string> &nodes,
const Quantity &volume);
74 std::set<std::pair<std::string, std::string> >
getPairs()
const;
80 typedef std::pair<std::string, std::string> matrixKeyType;
81 typedef std::map<matrixKeyType, Quantity> matrixType;
87 #endif //TRAFFIC_MATRIX_H
void setFlow(const std::string &source, const std::string &destination, const Quantity &volume)
Definition: traffic-matrix.cpp:24
Quantity getFlow(const std::string &source, const std::string &destination) const
Definition: traffic-matrix.cpp:11
std::set< std::pair< std::string, std::string > > getPairs() const
Definition: traffic-matrix.cpp:41
unsigned int size() const
Definition: traffic-matrix.cpp:7
Definition: traffic-matrix.h:19
Definition: quantity.h:16