summaryrefslogtreecommitdiff
path: root/libxsd/xsd/cxx/tree/elements.ixx
blob: da8a83e580ff903dafe0c3285350ea6dcee31212 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// file      : xsd/cxx/tree/elements.ixx
// copyright : Copyright (c) 2005-2014 Code Synthesis Tools CC
// license   : GNU GPL v2 + exceptions; see accompanying LICENSE file

namespace xsd
{
  namespace cxx
  {
    namespace tree
    {
      // content_order_type
      //

      inline bool
      operator== (const content_order& x, const content_order& y)
      {
        return x.id == y.id && x.index == y.index;
      }

      inline bool
      operator!= (const content_order& x, const content_order& y)
      {
        return !(x == y);
      }

      inline bool
      operator< (const content_order& x, const content_order& y)
      {
        return x.id < y.id || (x.id == y.id && x.index < y.index);
      }

      // type
      //

      inline _type::
      _type ()
          : container_ (0)
      {
      }

      template <typename C>
      inline _type::
      _type (const C*)
          : container_ (0)
      {
      }

      // simple_type
      //

      template <typename B>
      inline simple_type<B>::
      simple_type ()
      {
      }

      template <typename B>
      template <typename C>
      inline simple_type<B>::
      simple_type (const C*)
      {
      }
    }
  }
}