• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDE Support
  • Sitemap
  • Contact Us
 

qca

defalloc.h

Go to the documentation of this file.
00001 /*
00002 Copyright (C) 1999-2007 The Botan Project. All rights reserved.
00003 
00004 Redistribution and use in source and binary forms, for any use, with or without
00005 modification, is permitted provided that the following conditions are met:
00006 
00007 1. Redistributions of source code must retain the above copyright notice, this
00008 list of conditions, and the following disclaimer.
00009 
00010 2. Redistributions in binary form must reproduce the above copyright notice,
00011 this list of conditions, and the following disclaimer in the documentation
00012 and/or other materials provided with the distribution.
00013 
00014 THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) "AS IS" AND ANY EXPRESS OR IMPLIED
00015 WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
00016 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ARE DISCLAIMED.
00017 
00018 IN NO EVENT SHALL THE AUTHOR(S) OR CONTRIBUTOR(S) BE LIABLE FOR ANY DIRECT,
00019 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
00020 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
00021 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
00022 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
00023 OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
00024 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00025 */
00026 // LICENSEHEADER_END
00027 namespace QCA { // WRAPNS_LINE
00028 /*************************************************
00029 * Basic Allocators Header File                   *
00030 * (C) 1999-2007 The Botan Project                *
00031 *************************************************/
00032 
00033 #ifndef BOTAN_BASIC_ALLOC_H__
00034 #define BOTAN_BASIC_ALLOC_H__
00035 
00036 } // WRAPNS_LINE
00037 #include <botan/mem_pool.h>
00038 namespace QCA { // WRAPNS_LINE
00039 
00040 namespace Botan {
00041 
00042 /*************************************************
00043 * Malloc Allocator                              *
00044 *************************************************/
00045 class Malloc_Allocator : public Pooling_Allocator
00046    {
00047    public:
00048       Malloc_Allocator() : Pooling_Allocator(64*1024, false) {}
00049       std::string type() const { return "malloc"; }
00050    private:
00051       void* alloc_block(u32bit);
00052       void dealloc_block(void*, u32bit);
00053    };
00054 
00055 /*************************************************
00056 * Locking Allocator                              *
00057 *************************************************/
00058 class Locking_Allocator : public Pooling_Allocator
00059    {
00060    public:
00061       Locking_Allocator() : Pooling_Allocator(64*1024, true) {}
00062       std::string type() const { return "locking"; }
00063    private:
00064       void* alloc_block(u32bit);
00065       void dealloc_block(void*, u32bit);
00066    };
00067 
00068 }
00069 
00070 #endif
00071 } // WRAPNS_LINE

qca

Skip menu "qca"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDE Support

Skip menu "KDE Support"
  • akonadi
  • Decibel
  • grantlee
  • kdewin
  • phonon
  •     Backend
  • polkit-qt
  • qca
  • qimageblitz
  • soprano
  • strigi
  •     searchclient
  •     streamanalyzer
  •     streams
Generated for KDE Support by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal