summaryrefslogtreecommitdiff
path: root/libcult/cult/rtti/type-info.ixx
diff options
context:
space:
mode:
Diffstat (limited to 'libcult/cult/rtti/type-info.ixx')
-rw-r--r--libcult/cult/rtti/type-info.ixx87
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));
- }
- }
-}