# HG changeset patch # User alpar # Date 1075910568 0 # Node ID aa1700f78754fc51325c0220c218fff93742b404 # Parent 30e734e6adff51544f336fa3cc8b67c9cfcdd19b {}'s has been inserted after the function declarations. (For Misi's sake.) diff -r 30e734e6adff -r aa1700f78754 src/work/alpar/emptygraph.h --- a/src/work/alpar/emptygraph.h Wed Feb 04 14:36:46 2004 +0000 +++ b/src/work/alpar/emptygraph.h Wed Feb 04 16:02:48 2004 +0000 @@ -12,59 +12,59 @@ class NodeIt {}; - NodeIt &getFirst(NodeIt &) const; - InEdgeIt &getFirst(InEdgeIt &,const NodeIt) const; - OutEdgeIt &getFirst(OutEdgeIt &,const NodeIt) const; - SymEdgeIt &getFirst(SymEdgeIt &,const NodeIt) const; - EachEdgeIt &getFirst(EachEdgeIt &) const; + NodeIt &getFirst(NodeIt &) const {}; + InEdgeIt &getFirst(InEdgeIt &,const NodeIt) const {}; + OutEdgeIt &getFirst(OutEdgeIt &,const NodeIt) const {}; + SymEdgeIt &getFirst(SymEdgeIt &,const NodeIt) const {}; + EachEdgeIt &getFirst(EachEdgeIt &) const {}; - NodeIt next(const NodeIt) const; - InEdgeIt next(const InEdgeIt) const; - OutEdgeIt next(const OutEdgeIt) const; - SymEdgeIt next(const SymEdgeIt) const; - EachEdgeIt next(const EachEdgeIt) const; + NodeIt next(const NodeIt) const {}; + InEdgeIt next(const InEdgeIt) const {}; + OutEdgeIt next(const OutEdgeIt) const {}; + SymEdgeIt next(const SymEdgeIt) const {}; + EachEdgeIt next(const EachEdgeIt) const {}; - NodeIt &goNext(NodeIt &) const; - InEdgeIt &goNext(InEdgeIt &) const; - OutEdgeIt &goNext(OutEdgeIt &) const; - SymEdgeIt &goNext(SymEdgeIt &) const; - EachEdgeIt &goNext(EachEdgeIt &) const; + NodeIt &goNext(NodeIt &) const {}; + InEdgeIt &goNext(InEdgeIt &) const {}; + OutEdgeIt &goNext(OutEdgeIt &) const {}; + SymEdgeIt &goNext(SymEdgeIt &) const {}; + EachEdgeIt &goNext(EachEdgeIt &) const {}; - NodeIt head(const EdgeIt) const; - NodeIt tail(const EdgeIt) const; + NodeIt head(const EdgeIt) const {}; + NodeIt tail(const EdgeIt) const {}; - NodeIt aNode(const InEdgeIt) const; - NodeIt aNode(const OutEdgeIt) const; - NodeIt aNode(const SymEdgeIt) const; + NodeIt aNode(const InEdgeIt) const {}; + NodeIt aNode(const OutEdgeIt) const {}; + NodeIt aNode(const SymEdgeIt) const {}; - NodeIt bNode(const InEdgeIt) const; - NodeIt bNode(const OutEdgeIt) const; - NodeIt bNode(const SymEdgeIt) const; + NodeIt bNode(const InEdgeIt) const {}; + NodeIt bNode(const OutEdgeIt) const {}; + NodeIt bNode(const SymEdgeIt) const {}; - bool valid(const NodeIt) const; - bool valid(const EdgeIt) const; + bool valid(const NodeIt) const {}; + bool valid(const EdgeIt) const {}; - void setInvalid(NodeIt &) const; - void setInvalid(EdgeIt &) const; + void setInvalid(NodeIt &) const {}; + void setInvalid(EdgeIt &) const {}; - NodeIt addNode(); - EdgeIt addEdge(const NodeIt from,const NodeIt to); + NodeIt addNode() {}; + EdgeIt addEdge(const NodeIt from,const NodeIt to) {}; - void delete(NodeIt n); - void delete(EdgeIt e); + void delete(NodeIt n) {}; + void delete(EdgeIt e) {}; - void clear(); + void clear() {}; template class NodeMap { public: typedef T ValueType; typedef NodeIt KeyType; - void set(const NodeIt i, const T &t); - T get(const NodeIt i) const; - T &operator[](const NodeIt i); + void set(const NodeIt i, const T &t) {}; + T get(const NodeIt i) const {}; + T &operator[](const NodeIt i) {}; - NodeMap(const Graph &G); + NodeMap(const Graph &G) {}; }; template class EdgeMap @@ -72,10 +72,10 @@ public: typedef T ValueType; typedef EdgeIt KeyType; - void set(const EdgeIt i, const T &t); - T get(const EdgeIt i) const; - T &operator[](const EdgeIt i); + void set(const EdgeIt i, const T &t) {}; + T get(const EdgeIt i) const {}; + T &operator[](const EdgeIt i) {}; - EdgeMap(const Graph &G); + EdgeMap(const Graph &G) {}; }; };