diff options
| author | mjwybrow <mjwybrow@users.sourceforge.net> | 2006-07-14 05:30:15 +0000 |
|---|---|---|
| committer | mjwybrow <mjwybrow@users.sourceforge.net> | 2006-07-14 05:30:15 +0000 |
| commit | 4d9217f4f7b6e5b11f88af486e8659f539dc1300 (patch) | |
| tree | 4e554ba1a27ff9ef8d3d3299cca9eb303c73a726 /src/libavoid/vertices.cpp | |
| parent | fixed warnings (diff) | |
| download | inkscape-4d9217f4f7b6e5b11f88af486e8659f539dc1300.tar.gz inkscape-4d9217f4f7b6e5b11f88af486e8659f539dc1300.zip | |
* src/sp-conn-end-pair.cpp, src/connector-context.cpp,
src/document.cpp, src/libavoid/*:
Update libavoid with upstream fixes, optimisations and new features.
(bzr r1411)
Diffstat (limited to 'src/libavoid/vertices.cpp')
| -rw-r--r-- | src/libavoid/vertices.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/libavoid/vertices.cpp b/src/libavoid/vertices.cpp index 786919581..c2be955ac 100644 --- a/src/libavoid/vertices.cpp +++ b/src/libavoid/vertices.cpp @@ -30,6 +30,8 @@ #include <cstdlib> #include <cassert> +using std::ostream; + namespace Avoid { @@ -125,7 +127,6 @@ void VertID::print(FILE *file) const fprintf(file, "[%u,%d]", objID, vn); } - void VertID::db_print(void) const { db_printf("[%u,%d]", objID, vn); @@ -136,6 +137,13 @@ const int VertID::src = 1; const int VertID::tar = 2; +ostream& operator<<(ostream& os, const VertID& vID) +{ + return os << '[' << vID.objID << ',' << vID.vn << ']'; +} + + + VertInf::VertInf(Router *router, const VertID& vid, const Point& vpoint) : _router(router) , id(vid) |
