Skip to content

Commit 40402bb

Browse files
committed
Add more decoupling instructions
1 parent f66cf2b commit 40402bb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

coupling/coupled_program/graphs/graph.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ struct Edge {
1717

1818
// TODO:
1919
//
20-
// install a compilation firewall around
20+
// 1. install a compilation firewall around
2121
// the graph representation.
2222
//
2323
// In other words, client does not see
@@ -30,6 +30,9 @@ struct Edge {
3030
// This removes the coupling to the STL of this class,
3131
// and to the std::unique_ptr C++11 addition.
3232
//
33+
// 2. decouple the client code from the representation
34+
// by making the Node and Edge opaque types (handles) too.
35+
//
3336
// ADVANCED:
3437
// You may attempt to even use this class
3538
// from a C program.

0 commit comments

Comments
 (0)