COIN-OR::LEMON - Graph Library

Changeset 1814:0f02ced2e2ba in lemon-0.x for gui/new_map_win.h


Ignore:
Timestamp:
11/17/05 16:34:18 (18 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2361
Message:

As initial value of a new map expression with ()+-/* operators can be given. These operators work on numbers, or on maps. If maps are given, then the new value for a given graph element will be calculated using the value from the given maps that belong to that graph element.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui/new_map_win.h

    r1737 r1814  
    1010#include <libgnomecanvasmm.h>
    1111#include <libgnomecanvasmm/polygon.h>
     12#include <stack>
    1213
    1314///This class is responsible for creating a window,
     
    2223  GraphDisplayerCanvas & gdc;
    2324
    24  public:
     25public:
     26  struct tree_node
     27  {
     28    char ch;
     29    tree_node * left_child;
     30    tree_node * right_child;
     31  };
     32 
    2533  ///Constructor of NewMapWin creates the widgets shown in NewMapWin.
    2634  NewMapWin(const std::string& title, GraphDisplayerCanvas &);
    2735
    28 
     36 
    2937  ///Signal on button is connected to this function,
    3038  ///Therefore this function determines whether to
     
    3240  //tells it the attributes.(name, default value)
    3341  virtual void buttonPressed();
    34 
     42 
    3543  virtual void showByPreChoose(bool);
    3644
    3745  virtual bool closeIfEscapeIsPressed(GdkEventKey*);
     46
     47  ///Function that creates a tree from an appropriately manipulated string
     48  tree_node * weightedString2Tree(std::string, std::vector<unsigned int> &, int);
     49
     50  ///Function  that creates a string from a tree by postorder reading.
     51  std::string postOrder(tree_node *);
     52
     53  std::string string2Polishform(std::string, bool);
     54
     55  bool validVariable(std::string, bool);
     56
     57  std::map<char, std::string> ch2var;
    3858
    3959  Gtk::Entry name, default_value;
Note: See TracChangeset for help on using the changeset viewer.