X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FSafeBool.cti;h=f2618e6a2e6cee7c5a3f2d1b2f2b2f9a85d2e59c;hb=81ffa1c459b96dd44472bcef37e1e373934ee138;hp=1948e2d9545ece07248ef3694ebf82750d17097f;hpb=145f6a7d0f3a6aaa77b3625351c952d24cb0b8a1;p=senf.git diff --git a/Utils/SafeBool.cti b/Utils/SafeBool.cti index 1948e2d..f2618e6 100644 --- a/Utils/SafeBool.cti +++ b/Utils/SafeBool.cti @@ -1,8 +1,27 @@ // $Id$ // -// Copyright (C) 2006 +// Copyright (C) 2007 +// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) +// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) +// Stefan Bund +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the +// Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -// Definition of inline template functions +/** \file + \brief SafeBool inline template implementation */ //#include "SafeBool.ih" @@ -12,7 +31,7 @@ ///////////////////////////////cti.p/////////////////////////////////////// template -prefix_ senf::SafeBool::operator bool_type() +prefix_ senf::ComparableSafeBool::operator bool_type() const { return (static_cast(this))->boolean_test() @@ -20,14 +39,14 @@ prefix_ senf::SafeBool::operator bool_type() } template -prefix_ bool senf::SafeBool::operator!() +prefix_ bool senf::ComparableSafeBool::operator!() const { return ! (static_cast(this))->boolean_test(); } template -prefix_ senf::SafeBool::~SafeBool() +prefix_ senf::ComparableSafeBool::~ComparableSafeBool() {} template