X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FTypeIdValue.cti;h=a90b470f355003198529d265d5b05580fb582983;hb=f7f08ce8a2ffd9a8004ab04a22a8ed434c0812f7;hp=ade0402252874ee0f2ff6104c27ae283bac27ea0;hpb=601d1f509f5bb24df167a4dd5a20da67a0af9af8;p=senf.git diff --git a/senf/Utils/TypeIdValue.cti b/senf/Utils/TypeIdValue.cti index ade0402..a90b470 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 @@ -31,39 +31,27 @@ ///////////////////////////////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/////////////////////////////////////// +/////////////////////////////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: