Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53395 - sandbox/SOC/2009/function_graph/libs/test
From: mlopez7_at_[hidden]
Date: 2009-05-29 12:22:01


Author: lopezeant
Date: 2009-05-29 12:22:01 EDT (Fri, 29 May 2009)
New Revision: 53395
URL: http://svn.boost.org/trac/boost/changeset/53395

Log:
commented small test file
Text files modified:
   sandbox/SOC/2009/function_graph/libs/test/test1.cpp | 13 +++++++++++++
   1 files changed, 13 insertions(+), 0 deletions(-)

Modified: sandbox/SOC/2009/function_graph/libs/test/test1.cpp
==============================================================================
--- sandbox/SOC/2009/function_graph/libs/test/test1.cpp (original)
+++ sandbox/SOC/2009/function_graph/libs/test/test1.cpp 2009-05-29 12:22:01 EDT (Fri, 29 May 2009)
@@ -1,3 +1,8 @@
+/**
+ * This file is intended test compilation only.
+ */
+
+
 #include <iostream>
 #include <boost/function.hpp>
 #include <functional>
@@ -5,16 +10,24 @@
 #include <vector>
 #include "function_graph.hpp"
 
+// test boost function
 struct int_less_than {
     bool operator()(int a, int b) { return a < b; }
 };
 
 int main()
 {
+ // create two boost functions
     boost::function2<bool,int,int> h = int_less_than();
     boost::function2<bool,int,int> g = int_less_than();
+
+ // test constructor
     boost::graph::function_graph<bool, int> implicitG1(h);
+
+ // set the edge function
     implicitG1.set_edge_function(g);
+
+ // test the edge function
     implicitG1.edge(1,2);
     
     


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk