aboutsummaryrefslogtreecommitdiff
path: root/libxsd/xsd/cxx/parser/map.ixx
blob: 9ee1575bf83b406adadb6b00c5acfcdcccfafad3 (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
// file      : xsd/cxx/parser/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 xsd
{
  namespace cxx
  {
    namespace parser
    {
      // parser_map_impl
      //
      template <typename C>
      inline parser_map_impl<C>::parser_map_impl ()
      {
      }

      template <typename C>
      inline void parser_map_impl<C>::
      insert (parser_base<C>& parser)
      {
        map_[parser._dynamic_type ()] = &parser;
      }
    }
  }
}