yat/utility/Deleter.cc

Code
Comments
Other
Rev Date Author Line
2858 28 Sep 12 peter 1 // $Id$
2858 28 Sep 12 peter 2
2858 28 Sep 12 peter 3 /*
2858 28 Sep 12 peter 4   Copyright (C) 2012 Peter Johansson
2858 28 Sep 12 peter 5
2858 28 Sep 12 peter 6   This file is part of the yat library, http://dev.thep.lu.se/yat
2858 28 Sep 12 peter 7
2858 28 Sep 12 peter 8   The yat library is free software; you can redistribute it and/or
2858 28 Sep 12 peter 9   modify it under the terms of the GNU General Public License as
2858 28 Sep 12 peter 10   published by the Free Software Foundation; either version 3 of the
2858 28 Sep 12 peter 11   License, or (at your option) any later version.
2858 28 Sep 12 peter 12
2858 28 Sep 12 peter 13   The yat library is distributed in the hope that it will be useful,
2858 28 Sep 12 peter 14   but WITHOUT ANY WARRANTY; without even the implied warranty of
2858 28 Sep 12 peter 15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2858 28 Sep 12 peter 16   General Public License for more details.
2858 28 Sep 12 peter 17
2858 28 Sep 12 peter 18   You should have received a copy of the GNU General Public License
2858 28 Sep 12 peter 19   along with yat. If not, see <http://www.gnu.org/licenses/>.
2858 28 Sep 12 peter 20 */
2858 28 Sep 12 peter 21
2881 18 Nov 12 peter 22 #include <config.h>
2881 18 Nov 12 peter 23
2858 28 Sep 12 peter 24 #include "Deleter.h"
2858 28 Sep 12 peter 25
2858 28 Sep 12 peter 26 namespace theplu {
2858 28 Sep 12 peter 27 namespace yat {
2858 28 Sep 12 peter 28 namespace utility {
2858 28 Sep 12 peter 29
2858 28 Sep 12 peter 30   Deleter::Deleter(bool active)
2858 28 Sep 12 peter 31     : active_(active) {}
2858 28 Sep 12 peter 32
2858 28 Sep 12 peter 33
2858 28 Sep 12 peter 34   bool Deleter::active(void) const
2858 28 Sep 12 peter 35   {
2858 28 Sep 12 peter 36     return active_;
2858 28 Sep 12 peter 37   }
2858 28 Sep 12 peter 38
2858 28 Sep 12 peter 39 }}} // of namespace utility, yat, and theplu