Changeset 1210:f02396423239 in lemon-0.x
- Timestamp:
- 03/11/05 17:29:03 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1630
- Location:
- src/work/deba
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/deba/graph_io_test.cc
r1115 r1210 1 1 #include <lemon/smart_graph.h> 2 2 3 #include "map_utils.h"3 #include <lemon/map_utils.h> 4 4 5 6 #include "graph_reader.h" 7 #include "graph_writer.h" 5 #include <lemon/graph_reader.h> 6 #include <lemon/graph_writer.h> 8 7 9 8 #include <iostream> … … 42 41 43 42 try { 44 reader.r ead();45 } catch (IOE xception& e) {43 reader.run(); 44 } catch (IOError& e) { 46 45 cerr << e.what() << endl; 47 46 } catch (Exception e) { … … 79 78 writer.addNode("source", node_ids.inverse()[3]); 80 79 // writer.addEdge("elek", edge_ids.inverse()[6]); 81 writer. write();80 writer.run(); 82 81 83 82 return 0; -
src/work/deba/test.cpp
r1036 r1210 3 3 using namespace std; 4 4 5 #include <lemon/utility.h> 5 6 7 using namespace std; 8 /* 6 9 struct _EmptyList { 7 10 void write() const {} … … 50 53 Writer().add(3).add("alpha").add(4.53).write(); 51 54 } 55 */ 56 57 class A { 58 public: 59 typedef int X; 60 }; 61 62 class C { 63 }; 64 65 template <typename A> 66 class TRUE { 67 public: 68 static const bool state = true; 69 }; 70 71 template <typename _A> 72 class B { 73 public: 74 typedef enable_if<A::X, int> state; 75 }; 76 77 template <typename _A> 78 class B<_A, void> { 79 public: 80 static const bool state = true; 81 }; 82 83 int main() { 84 printf("%s\n", B<A>::state(), true ? "true" : "false"); 85 printf("%s\n", B<C>::state(), true ? "true" : "false"); 86 return 0; 87 } -
src/work/deba/test.lgf
r1037 r1210 5 5 # hatalom dicsoseg "A -> B \t: 10" c 6 6 3 1 red "A -> B \t: 10" d #adjkhj 7 4 2 red "A -> B \t: 10" e7 a4 2 red "A -> B \t: 10" e 8 8 5 1 green "A -> B \t: 10" f 9 9 10 1 green "A -> B \t: 10" g
Note: See TracChangeset
for help on using the changeset viewer.