X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FTypeIdValue.cti;h=4fbd05347fa4a646e9cb969e17dd68ce0aac610a;hb=5b2e9a63a43027c71ac470ac9bdecb72e8974951;hp=ade0402252874ee0f2ff6104c27ae283bac27ea0;hpb=601d1f509f5bb24df167a4dd5a20da67a0af9af8;p=senf.git diff --git a/senf/Utils/TypeIdValue.cti b/senf/Utils/TypeIdValue.cti index ade0402..4fbd053 100644 --- a/senf/Utils/TypeIdValue.cti +++ b/senf/Utils/TypeIdValue.cti @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2006 +// Copyright (C) 2009 // Fraunhofer Institute for Open Communication Systems (FOKUS) // Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund @@ -28,42 +28,30 @@ // Custom includes #define prefix_ inline -///////////////////////////////cti.p/////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// template -prefix_ senf::TypeIdValue::TypeIdValue(Type *) - : value_(new ValueImpl()) -{} - -template -prefix_ std::type_info const & senf::TypeIdValue::ValueImpl::id() +prefix_ senf::TypeIdValue const senf::typeIdValue() { return typeid(Type); } template -prefix_ senf::TypeIdValue::Value * -senf::TypeIdValue::ValueImpl::clone() -{ - return new ValueImpl(); -} - -template -prefix_ senf::TypeIdValue const senf::typeIdValue() +prefix_ senf::TypeIdValue const senf::typeIdValue(Type const & ob) { - return TypeIdValue(static_cast(0)); + return typeid(ob); } -///////////////////////////////cti.e/////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// #undef prefix_ // Local Variables: // mode: c++ // fill-column: 100 +// comment-column: 40 // c-file-style: "senf" // indent-tabs-mode: nil // ispell-local-dictionary: "american" // compile-command: "scons -u test" -// comment-column: 40 // End: