X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FSafeBool.cti;h=f2618e6a2e6cee7c5a3f2d1b2f2b2f9a85d2e59c;hb=81ffa1c459b96dd44472bcef37e1e373934ee138;hp=bdf32c27e577e9bf0848ea4b66ff2fc9646651bd;hpb=85ab07d100a382467a42e19d741d403a7a96c951;p=senf.git diff --git a/Utils/SafeBool.cti b/Utils/SafeBool.cti index bdf32c2..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 @@ -52,4 +71,6 @@ prefix_ void senf::operator!=(const SafeBool& lhs, const SafeBool& rhs) // c-file-style: "senf" // indent-tabs-mode: nil // ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 // End: