Blame view

UttTreeNode.cpp 847 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
  #include "UttTreeNode.h"
  
  UttTreeNode::UttTreeNode(double ultDist, double weight, int subRef, UttTreeNode *ls, UttTreeNode *rs, bool visible)
    : m_ultDist(ultDist),
      m_subRef(subRef),
      m_weight(weight),
      m_ls(ls),
      m_rs(rs),
      m_visible(visible)
  {
  }
  
  UttTreeNode::~UttTreeNode()
  {
  }
  
  ///////////////
  // accessors //
  ///////////////
  
  double UttTreeNode::getUltDist() const
  {
    return m_ultDist;
  }
  
  double UttTreeNode::getWeight() const
  {
    return m_weight;
  }
  
  int UttTreeNode::getSubRef() const
  {
    return m_subRef;
  }
  
  bool UttTreeNode::getVisible() const
  {
    return m_visible;
  }
  
  UttTreeNode * UttTreeNode::getLeftSon() const
  {
    return m_ls;
  }
  
  UttTreeNode * UttTreeNode::getRightSon() const
  {
    return m_rs;
  }
  
  ///////////////
  // modifiers //
  ///////////////
  
  void UttTreeNode::setVisible(bool visible)
  {
    m_visible = visible;
  }