X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2Fpool_alloc_mixin.hh;h=2cdfe5ed12e3f8c6201b54fc0d5e7f9903aebb8d;hb=5443435c4c2b6e4386c5334b5b8358273f2bae93;hp=fc1a2320def5197706aa0e52efe4377d66e46a72;hpb=47368f306a577d1e46df69a7f729bd3893cbe5e7;p=senf.git diff --git a/Utils/pool_alloc_mixin.hh b/Utils/pool_alloc_mixin.hh index fc1a232..2cdfe5e 100644 --- a/Utils/pool_alloc_mixin.hh +++ b/Utils/pool_alloc_mixin.hh @@ -1,6 +1,8 @@ -// Copyright (C) 2007 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) +// $Id$ +// +// Copyright (C) 2007 +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund // // This program is free software; you can redistribute it and/or modify @@ -21,8 +23,8 @@ /** \file \brief pool_alloc_mixin public header */ -#ifndef HH_pool_alloc_mixin_ -#define HH_pool_alloc_mixin_ 1 +#ifndef HH_SENF_Utils_pool_alloc_mixin_ +#define HH_SENF_Utils_pool_alloc_mixin_ 1 // Custom includes #include @@ -42,7 +44,7 @@ namespace senf { default. Using this allocator does however introduce a few restrictions: \li The operator is defined for a fixed size. Therefore if you derive from the class you - must not change it's size. + must not change it's size. \li If you change the size of the class in a derived class you have to derive from pool_alloc_mixin again. @@ -82,7 +84,7 @@ namespace senf { static void operator delete (void *p, size_t size); ///< Operator delete utilizing pool allocation -#ifndef NDEBUG +#ifdef SENF_DEBUG static unsigned long allocCounter(); private: static unsigned long allocCounter(long delta); @@ -104,4 +106,6 @@ namespace senf { // c-file-style: "senf" // indent-tabs-mode: nil // ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 // End: