Blame view

UttTreeNode.h 580 Bytes
3f2992b2c   bostx   V1.0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  #ifndef UTTTREENODE_H
  #define UTTTREENODE_H
  
  class UttTreeNode
  {
  public:
    UttTreeNode(double ultDist, double weight, int subRef = -1, UttTreeNode *ls = nullptr, UttTreeNode *rs = nullptr, bool visible = true);
    ~UttTreeNode();
    double getUltDist() const;
    double getWeight() const;
    int getSubRef() const;
    bool getVisible() const;
    UttTreeNode * getLeftSon() const;
    UttTreeNode * getRightSon() const;
    void setVisible(bool visible);
  
  private:
    double m_ultDist;
    int m_subRef;
    double m_weight;
    UttTreeNode *m_ls;
    UttTreeNode *m_rs;
    bool m_visible;
  };
  
  #endif