aboutsummaryrefslogtreecommitdiff
path: root/libxsde/xsde/cxx/parser/validating/inheritance-map.ixx
blob: d4735d2149fc78b7477cba048be30b87d32ce9e8 (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
// file      : xsde/cxx/parser/validating/inheritance-map.ixx
// author    : Boris Kolpackov <boris@codesynthesis.com>
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC
// license   : GNU GPL v2 + exceptions; see accompanying LICENSE file

namespace xsde
{
  namespace cxx
  {
    namespace parser
    {
      namespace validating
      {
        inline inheritance_map::
        inheritance_map (size_t buckets)
            : hashmap (buckets, sizeof (const char*))
        {
        }

        inline void inheritance_map::
        insert (const char* derived, const char* base)
        {
          hashmap::insert (derived, &base);
        }

        inline inheritance_map&
        inheritance_map_instance ()
        {
          return *inheritance_map_init::map;
        }
      }
    }
  }
}