summaryrefslogtreecommitdiff
path: root/contrib/utility/Utility/Introspection/Object.ipp
blob: 7b5de978c6efb8789ae53b4523ead89531b2747f (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
// file      : Utility/Introspection/Object.ipp
// author    : Boris Kolpackov <boris@kolpackov.net>
// copyright : Copyright (c) 2002-2003 Boris Kolpackov
// license   : http://kolpackov.net/license.html

namespace Utility
{
  namespace Introspection
  {
    inline TypeInfo const& Object::
    type_info () const throw ()
    {
      return *type_info_;
    }

    inline Object::
    ~Object ()
    {
    }

    inline Object::
    Object () throw ()
    {
      type_info (static_type_info ());
    }


    inline Object::
    Object (Object const&) throw ()
    {
      type_info (static_type_info ());
    }


    inline Object& Object::
    operator= (Object const&) throw ()
    {
      return *this;
    }

    inline void Object::
    type_info (TypeInfo const& tid) throw ()
    {
      type_info_ = &tid;
    }
  }
}
//$Id$