COIN-OR::LEMON - Graph Library

Changeset 1210:f02396423239 in lemon-0.x


Ignore:
Timestamp:
03/11/05 17:29:03 (15 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1630
Message:

work modifications

Location:
src/work/deba
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • src/work/deba/graph_io_test.cc

    r1115 r1210  
    11#include <lemon/smart_graph.h>
    22
    3 #include "map_utils.h"
     3#include <lemon/map_utils.h>
    44
    5 
    6 #include "graph_reader.h"
    7 #include "graph_writer.h"
     5#include <lemon/graph_reader.h>
     6#include <lemon/graph_writer.h>
    87
    98#include <iostream>
     
    4241
    4342  try {
    44     reader.read();
    45   } catch (IOException& e) {
     43    reader.run();
     44  } catch (IOError& e) {
    4645    cerr << e.what() << endl;
    4746  } catch (Exception e) {
     
    7978  writer.addNode("source", node_ids.inverse()[3]);
    8079  //  writer.addEdge("elek", edge_ids.inverse()[6]);
    81   writer.write();
     80  writer.run();
    8281 
    8382  return 0;
  • src/work/deba/test.cpp

    r1036 r1210  
    33using namespace std;
    44
     5#include <lemon/utility.h>
    56
     7using namespace std;
     8/*
    69struct _EmptyList {
    710  void write() const {}
     
    5053  Writer().add(3).add("alpha").add(4.53).write();
    5154}
     55*/
     56
     57class A {
     58public:
     59  typedef int X;
     60};
     61
     62class C {
     63};
     64
     65template <typename A>
     66class TRUE {
     67public:
     68  static const bool state = true;
     69};
     70
     71template <typename _A>
     72class B {
     73public:
     74  typedef enable_if<A::X, int> state;
     75};
     76
     77template <typename _A>
     78class B<_A, void> {
     79public:
     80  static const bool state = true;
     81};
     82
     83int 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  
    55# hatalom dicsoseg "A -> B \t: 10" c
    663 1 red "A -> B \t: 10" d #adjkhj
    7 4 2 red "A -> B \t: 10" e
     7a4 2 red "A -> B \t: 10" e
    885 1 green "A -> B \t: 10" f
    9910 1 green "A -> B \t: 10" g
Note: See TracChangeset for help on using the changeset viewer.