diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-07-23 15:21:29 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-07-23 15:21:29 +0200 |
commit | bada6666c70977a058755ccf232e7d67b24adeed (patch) | |
tree | 1e92d50cebce96abaf9bce19e36026c47f77b9ba /libcult/cult/rtti/type-info.cxx | |
parent | eaf34adcbd8095bc6d1f3371b1227f654c7b19fc (diff) |
New upstream release
Diffstat (limited to 'libcult/cult/rtti/type-info.cxx')
-rw-r--r-- | libcult/cult/rtti/type-info.cxx | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/libcult/cult/rtti/type-info.cxx b/libcult/cult/rtti/type-info.cxx deleted file mode 100644 index 5bc4040..0000000 --- a/libcult/cult/rtti/type-info.cxx +++ /dev/null @@ -1,42 +0,0 @@ -// file : cult/rtti/type-info.cxx -// author : Boris Kolpackov <boris@kolpackov.net> -// copyright : Copyright (c) 2005-2010 Boris Kolpackov -// license : GNU GPL v2 + exceptions; see accompanying LICENSE file - -#include <cult/rtti/type-info.hxx> - -#include <cult/mm/static-ptr.hxx> - -#include <cult/containers/map.hxx> - -namespace Cult -{ - namespace RTTI - { - Access const Access::private_ (Access::private__); - Access const Access::protected_ (Access::protected__); - Access const Access::public_ (Access::public__); - - typedef - Containers::Map<TypeId, TypeInfo> - TypeInfoMap; - - static MM::StaticPtr<TypeInfoMap> map_; - - TypeInfo const& - lookup (TypeId const& type_id) - { - TypeInfoMap::ConstIterator i (map_->find (type_id)); - - if (i == map_->end ()) throw NoInfo (); - - return i->second; - } - - Void - insert (TypeInfo const& type_info) - { - map_->insert (TypeInfoMap::Pair (type_info.type_id (), type_info)); - } - } -} |