diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-07-23 15:25:44 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-07-23 15:25:44 +0200 |
commit | 8286ac511144e4f17d34eac9affb97e50646344a (patch) | |
tree | f1af7320d7b6be6be059216d0ad08ac7b4f73fd0 /libcult/cult/rtti/type-info.ixx | |
parent | a15cf65c44d5c224169c32ef5495b68c758134b7 (diff) |
Imported Upstream version 4.0.0upstream/4.0.0
Diffstat (limited to 'libcult/cult/rtti/type-info.ixx')
-rw-r--r-- | libcult/cult/rtti/type-info.ixx | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/libcult/cult/rtti/type-info.ixx b/libcult/cult/rtti/type-info.ixx deleted file mode 100644 index f96ad6c..0000000 --- a/libcult/cult/rtti/type-info.ixx +++ /dev/null @@ -1,87 +0,0 @@ -// file : cult/rtti/type-info.ixx -// author : Boris Kolpackov <boris@kolpackov.net> -// copyright : Copyright (c) 2005-2010 Boris Kolpackov -// license : GNU GPL v2 + exceptions; see accompanying LICENSE file - -namespace Cult -{ - namespace RTTI - { - // BaseInfo - // - - inline - BaseInfo:: - BaseInfo (Access access, Boolean virtual_, TypeId const& type_id) - : access_ (access), - virtual__ (virtual_), - type_id_ (type_id), - type_info_ (0) - { - } - - inline - TypeInfo const& BaseInfo:: - type_info () const - { - if (type_info_ == 0) type_info_ = &(lookup (type_id_)); - - return *type_info_; - } - - - inline - Access BaseInfo:: - access () const - { - return access_; - } - - inline - Boolean BaseInfo:: - virtual_ () const - { - return virtual__; - } - - - // TypeInfo - // - - inline - TypeInfo:: - TypeInfo (TypeId const& type_id) - : type_id_ (type_id) - { - } - - inline - TypeId TypeInfo:: - type_id () const - { - return type_id_; - } - - inline - TypeInfo::BaseIterator TypeInfo:: - begin_base () const - { - return base_list_.begin (); - } - - - inline - TypeInfo::BaseIterator TypeInfo:: - end_base () const - { - return base_list_.end (); - } - - inline - Void TypeInfo:: - add_base (Access access, Boolean virtual_, TypeId const& type_id) - { - base_list_.push_back (BaseInfo (access, virtual_, type_id)); - } - } -} |