summaryrefslogtreecommitdiff
path: root/tiger-compiler/lib/misc/symbol.hxx
blob: c31cb8cac04ddb9ce271f9c7ac4e760595adc396 (plain)
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
/**
 ** \file misc/symbol.hxx
 ** \brief Inline implementation of misc::symbol.
 */

#pragma once

#include <misc/symbol.hh>

namespace misc
{
  inline symbol& symbol::operator=(const symbol& rhs)
  {
    // FIXME DONE: Some code was deleted here.
    if (this != &rhs)
    {
      super_type::operator=(rhs);
    }
    return *this;
  }

  inline bool symbol::operator==(const symbol& rhs) const
  {
    // FIXME DONE: Some code was deleted here.
    return super_type::operator==(rhs);
  }

  inline bool symbol::operator!=(const symbol& rhs) const
  {
    // FIXME DONE: Some code was deleted here.
    return !(*this == rhs);
  }

  inline std::ostream& operator<<(std::ostream& ostr, const symbol& the)
  {
    // FIXME DONE: Some code was deleted here.
    return ostr << the.get();
  }
} // namespace misc